Docs API reference

Team

The team that owns the API key, and its members and pending invites.

Examples read your API key from RELAYDOCK_API_KEY (see Authentication). Paths are relative to https://api.relaydock.io/api/v1.

Get your team

GET/tenant

Returns the team the API key belongs to: name, status, plan and trial end. id is the value for X-RelayDock-Tenant. Team settings are changed in the panel.

Example request

curl "https://api.relaydock.io/api/v1/tenant" \
  -H "Authorization: Bearer $RELAYDOCK_API_KEY"

Response

200 with a JSON object.

Field Description
idstring (uuid)Team ID; the value of X-RelayDock-Tenant.
namestringTeam name.
slugstringShort name in your SIP address (<slug>.<SIP domain>).
statusstringactive, suspended (calls and changes are refused) or deleting (deletion scheduled; read-only until purge_at).
planstringtrial, starter, pro or business.
trial_ends_atstring (date-time)can be nullWhen the trial ends or ended; null without a trial.
notification_emailsarray of stringAddresses that get alerts, besides the owners.
created_atstring (date-time)When the team was created.
rolestringYour role: owner or member for panel users, api_key for API keys, staff for RelayDock staff.
read_onlybooleantrue only for RelayDock staff viewing the team.
countrystringcan be nullCountry, ISO 3166-1 alpha-2.
terms_versionstringcan be nullVersion of the Terms the team accepted.
terms_accepted_atstring (date-time)can be nullWhen the Terms were accepted.
vat_idstringcan be nullTax ID given at checkout.
deleted_atstring (date-time)can be nullWhen deletion was scheduled; null if not.
purge_atstring (date-time)can be nullWhen the team and its data are deleted for good (7 days after deleted_at).
json
{
  "id": "6f1d2c3b-8a47-4e5f-9b20-7c4d1e8a9f36",
  "name": "Acme",
  "slug": "acme",
  "status": "active",
  "plan": "pro",
  "trial_ends_at": "2026-04-01T10:15:00Z",
  "notification_emails": [
    "[email protected]"
  ],
  "created_at": "2026-03-02T09:58:12Z",
  "role": "api_key",
  "read_only": false,
  "country": "US",
  "terms_version": "2026-02-01",
  "terms_accepted_at": "2026-03-02T09:58:12Z",
  "vat_id": null,
  "deleted_at": null,
  "purge_at": null
}

List team members

GET/tenant/members

Returns your team's members and pending invites. Owners invite and remove members in the panel.

Example request

curl "https://api.relaydock.io/api/v1/tenant/members" \
  -H "Authorization: Bearer $RELAYDOCK_API_KEY"

Response

200 with a JSON object.

Field Description
membersarray of objectsMembers, oldest first.
members[].idstring (uuid)Membership ID.
members[].user_idstring (uuid)User ID.
members[].emailstringSign-in email.
members[].namestringName; may be empty.
members[].rolestringowner or member.
members[].joined_atstring (date-time)When they joined the team.
members[].last_login_atstring (date-time)can be nullLast sign-in; null if never.
invitesarray of objectsInvites not accepted yet, oldest first (expired ones included).
invites[].idstring (uuid)Invite ID.
invites[].emailstringInvited email.
invites[].rolestringowner or member.
invites[].expires_atstring (date-time)When the invite expires.
invites[].created_atstring (date-time)When it was sent.
json
{
  "members": [
    {
      "id": "c2a7e9d1-4b6f-4f38-8e05-9a1d3c7b2e64",
      "user_id": "0b8e4f2a-7c31-4d9e-a6b5-3e2f1d8c9a07",
      "email": "[email protected]",
      "name": "Ada Park",
      "role": "owner",
      "joined_at": "2026-03-02T09:58:12Z",
      "last_login_at": "2026-03-14T09:26:53Z"
    }
  ],
  "invites": [
    {
      "id": "e5d3b1a9-2f47-4c86-b0e1-7a9c5d3f2b18",
      "email": "[email protected]",
      "role": "member",
      "expires_at": "2026-03-21T08:00:00Z",
      "created_at": "2026-03-14T08:00:00Z"
    }
  ]
}