Get all Projects

Retrieves a list of all Projects associated with the given Account.

Response Code

200

Arguments

account_id The Account ID

Definition

GET: /projects?account_id=<ACCOUNT_ID>

cURL Example

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

Returns

JSON Object

Example Response

{ "data": [ { "id": 123456, "name": "Example Project", "account_id": 123456, "active": true, "text_direction": "ltr", "overdue": false, "statuses": { "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>';
$account_id '<ACCOUNT_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?account_id=' $account_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.