Skip to main content
GET
/
v1
/
workspaces
List workspaces
curl --request GET \
  --url https://api.app.layer.ai/api/v1/workspaces \
  --header 'Authorization: Bearer <token>'
{
  "workspaces": [
    {
      "workspace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "slug": "<string>",
      "name": "<string>",
      "balance_creative_units": 123,
      "reserved_creative_units": 123,
      "available_creative_units": 123,
      "last_active_at": "2023-11-07T05:31:56Z"
    }
  ],
  "pagination": {
    "has_more_results": true,
    "next_cursor": "<string>",
    "total_count": 123
  }
}

Authorizations

Authorization
string
header
required

Personal Access Token or OAuth2 JWT. Create a PAT at app.layer.ai → Settings → Personal Access Tokens.

Query Parameters

limit
integer
default:20

Maximum number of results to return.

Required range: 1 <= x <= 100
cursor
string | null

Cursor from a previous response to get the next page.

Response

Successful Response

workspaces
WorkspaceInfo · object[]
required

All workspaces the authenticated user belongs to, ordered by most recently active first.

pagination
PaginationOutput · object
required