Skip to main content
GET
/
api
/
public
/
v1
/
team
curl -sS https://app.opentrain.ai/api/public/v1/team \
  -H "Authorization: Bearer $OT_API_TOKEN"
{
  "team": {
    "organization": {
      "id": "<ORGANIZATION_ID>",
      "name": "Acme Research",
      "ownerUserId": "<OWNER_USER_ID>",
      "ownerName": "Dana Owner"
    },
    "members": [
      {
        "userId": "<OWNER_USER_ID>",
        "role": "OWNER",
        "name": "Dana Owner",
        "email": "dana@example.com",
        "joinedAt": "2026-05-01T09:00:00.000Z"
      },
      {
        "userId": "<MEMBER_USER_ID>",
        "role": "MEMBER",
        "name": "Sam Teammate",
        "email": "sam@example.com",
        "joinedAt": "2026-06-02T14:30:00.000Z"
      }
    ],
    "invites": [
      {
        "id": "<INVITE_ID>",
        "email": "newhire@example.com",
        "createdAt": "2026-06-12T10:00:00.000Z",
        "expiresAt": "2026-06-19T10:00:00.000Z"
      }
    ]
  }
}
Reads the employer team for the account: the organization, every member with their role, and any pending email invites. Team members share the account’s jobs and team inbox — invite humans with POST /team/invites. Member email here is the team member’s own login email — these are humans on your workspace, not AI trainers (AI trainer contact always goes through the Work Email system). Requirements: team:read scope + the public_api_team feature. Works pre-claim.

Request

No parameters.

Response

team
object

Errors

StatuscodeMeaning
401UNAUTHORIZEDMissing or invalid token
403FORBIDDENMissing team:read (details.requiredScopes, details.grantedScopes), public_api_team disabled, or employer teams not enabled for the account (details.reason: "teams_not_enabled")
curl -sS https://app.opentrain.ai/api/public/v1/team \
  -H "Authorization: Bearer $OT_API_TOKEN"
{
  "team": {
    "organization": {
      "id": "<ORGANIZATION_ID>",
      "name": "Acme Research",
      "ownerUserId": "<OWNER_USER_ID>",
      "ownerName": "Dana Owner"
    },
    "members": [
      {
        "userId": "<OWNER_USER_ID>",
        "role": "OWNER",
        "name": "Dana Owner",
        "email": "dana@example.com",
        "joinedAt": "2026-05-01T09:00:00.000Z"
      },
      {
        "userId": "<MEMBER_USER_ID>",
        "role": "MEMBER",
        "name": "Sam Teammate",
        "email": "sam@example.com",
        "joinedAt": "2026-06-02T14:30:00.000Z"
      }
    ],
    "invites": [
      {
        "id": "<INVITE_ID>",
        "email": "newhire@example.com",
        "createdAt": "2026-06-12T10:00:00.000Z",
        "expiresAt": "2026-06-19T10:00:00.000Z"
      }
    ]
  }
}