List Your Organizations
GET
https://deploygate.com/api/organizations
Get list of Organizations the your account belongs to.
Caution
Organization's API Key is not allowed to use. Please use User's API Key.
Example
curl \
-X GET \
--url "https://deploygate.com/api/organizations" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${API_TOKEN}"
Result 200
{
"error": false,
"organizations": [
{
"type": "Organization",
"name": "ExampleOrganization",
"description": "This is an organization",
"url": "https://deploygate.com/organizations/ExampleOrganization"
},
{
"type": "Organization",
"name": "ExampleEnterpriseOrganization",
"description": "This is an organization created in Enterprise",
"url": "https://deploygate.com/organizations/ExampleEnterpriseOrganization",
"enterprise": {
"type": "Enterprise",
"name": "ExampleEnterprise",
"display_name": "Example Enterprise Inc.",
"url": "https://deploygate.com/enterprises/ExampleEnterprise",
"icon_url": "/img/icons/enterprise-default-thumb.png"
}
}
]
}
Result 400 - If Access With Organization's API Key
{
"error": true,
"message": "requester must be a user",
"because": "requester must be a user"
}