Your organizations
GET
/api/v1/organizations
const url = 'http://localhost:3000/api/v1/organizations';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:3000/api/v1/organizations \ --header 'Authorization: Bearer <token>'Any caller; the scope needed is checked on what it acts on.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Organizations you have a grant in
Media typeapplication/json
object
data
required
Array<object>
object
id
required
string format: uuid
slug
required
string
name
required
string
Examplegenerated
{ "data": [ { "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "slug": "example", "name": "example" } ]}default
Section titled “default”An error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
detail
Examplegenerated
{ "error": { "code": "example", "message": "example", "detail": "example" }}