Get a single Status

This endpoint retrieves information about a specific Status for a Project, such as its name, description and Due Date.

Response Code

200

Arguments

project_id The ID of the Project
status_id The ID of the Status

Definition

GET: /projects/<PROJECT_ID>/statuses/<STATUS_ID>

cURL Example

curl https://api.gathercontent.com/projects/<PROJECT_ID>/statuses/<STATUS_ID> \ -u [email protected]:<YOUR_API_KEY> \ -H "Accept: application/vnd.gathercontent.v0.5+json"

Returns

JSON Object

Example Response

{ "data": { "id": "123456", "is_default": true, "position": "1", "color": "#C5C5C5", "name": "Draft", "description": "", "can_edit": true } }

PHP Example

<?php
$username 
[email protected]';
$apikey '<YOUR_PRIVATE_KEY>';
$project_id '<PROJECT_ID>';
$status_id '<STATUS_ID>';

$ch curl_init();

curl_setopt$chCURLOPT_HTTPAUTHCURLAUTH_BASIC);
curl_setopt$chCURLOPT_HTTPHEADER, array('Accept: application/vnd.gathercontent.v0.5+json'));
curl_setopt$chCURLOPT_USERPWD$username ':' $apikey);
curl_setopt$chCURLOPT_URL'https://api.gathercontent.com/projects/' $project_id '/statuses/' $status_id);
curl_setopt$chCURLOPT_RETURNTRANSFERtrue );

$response json_decodecurl_exec$ch ) );
curl_close$ch );

Great, welcome aboard!

That’s it! You’re signed up to our mailing list and can expect content strategy goodness in your inbox soon.