Listing your organisations
List the organisations you are a member of.
To access the API you must provide the `bearer token`.
Send a GET
request to the API endpoint /api/user/orgs
This will return you a list of JSON objects for the organisations that you belong to.
[{ "name": "<organisation name>", "slug": "<organisation slug>" }]
Example:
curl -X 'POST' \
'https://iotsimhub.net/api/user/orgs' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer <token>" \
API error codes
The endpoint will return errors in the format:
{
"errors": {
"detail": <error response>
}
}
Error Response | Description |
---|---|
Unauthorized | The request was not successful because you are not authenticated. |