Listing your organisations

List the organisations you are a member of.

To access the API you must provide the `bearer token`.

See API Authentication

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 ResponseDescription
UnauthorizedThe request was not successful because you are not authenticated.