Skip to content

Organizations

Organizations you belong to.

GET/v1/orgs

listOrgsRole: viewer or higher

The organizations this token reaches: an access token reaches just its own, so this is one item.

Parameters

NameInTypeDescription
limitqueryintegerHow many items to return, 1 to 200. Default 100.
cursorquerystringA previous page's next_cursor, to fetch the page after it. Omit for the first page.

Example request

Terminal window
curl https://api.spanslice.com/v1/orgs \
-H "Authorization: Bearer $SPANSLICE_TOKEN"

Response 200

ListOrgsResponse

Example response
{
"data": [
{
"slug": "snugghome",
"name": "SnuggHome",
"role": "member",
"created_at": "2026-09-18T12:00:00.000Z"
}
],
"next_cursor": null
}

Errors

StatusCodeWhen
400invalid_requestThe request is invalid; errors says where.
401unauthorizedThe access token is missing, unknown, expired or revoked.
404not_foundIt doesn't exist, or this token can't reach it.

GET/v1/orgs/{org}

getOrgRole: viewer or higher

One organization, with your role in it as this token acts.

Parameters

NameInTypeDescription
orgrequiredpathstringThe organization's slug, as in its URL in the app. Example: "snugghome".

Example request

Terminal window
curl https://api.spanslice.com/v1/orgs/snugghome \
-H "Authorization: Bearer $SPANSLICE_TOKEN"

Response 200

Organization

Example response
{
"slug": "snugghome",
"name": "SnuggHome",
"role": "member",
"created_at": "2026-09-18T12:00:00.000Z"
}

Errors

StatusCodeWhen
400invalid_requestThe request is invalid; errors says where.
401unauthorizedThe access token is missing, unknown, expired or revoked.
404not_foundIt doesn't exist, or this token can't reach it.