Skip to main content
GET
/
api
/
v1
/
accounts
Accounts
curl --request GET \
  --url https://api.example.com/api/v1/accounts
Returns all accounts the authenticated user belongs to.

Request

curl https://app.framesports.com/api/v1/accounts \
  -H "Authorization: Bearer your-api-token"

Response

[
  {
    "id": 1,
    "name": "My Rugby Club",
    "owner_id": 42,
    "created_at": "2024-01-15T10:30:00.000Z",
    "updated_at": "2024-06-01T08:00:00.000Z",
    "account_users": [
      { "id": 1, "user_id": 42 },
      { "id": 2, "user_id": 55 }
    ]
  }
]
Use the account name to identify which account to target, then pass its prefix ID (e.g. acct_abc123) in the Account-Id header on subsequent requests. See Authentication for details.