Get all Statuses

Retrieves a list of all the Statuses (what we call the Project’s Workflow) associated with a given Project. This includes their names, descriptions, associated colours and their Due Dates.

Response Code

200

Arguments

project_id The ID of the Project

Definition

GET: /projects/<PROJECT_ID>/statuses

cURL Example

curl https://api.gathercontent.com/projects/<PROJECT_ID>/statuses \ -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 }, { "id": "123457", "is_default": false, "position": "2", "color": "#FAA732", "name": "Review", "description": "", "can_edit": true }, { "id": "123458", "is_default": false, "position": "3", "color": "#5EB95E", "name": "Final edits", "description": "", "can_edit": true }, { "id": "123459", "is_default": false, "position": "4", "color": "#DD4398", "name": "Ready to be published", "description": "", "can_edit": false } ] }

PHP Example

<?php
$username 
[email protected]';
$apikey '<YOUR_API_KEY>';
$project_id '<PROJECT_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');
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.