Team
View as Markdown

Invite someone to the workspace

No API key can call this route. It needs a signed-in dashboard user with the right role; a key answers 403. About scopes

POST
/api/v1/team/invites

Authorization

Authorization
Required
Bearer <token>

An API key: gpy_test_… or gpy_live_… (or an agent key, agk_…).

In: header

Request Body

application/jsonOptional

email
Required
string

Format: "email"

role
Required
string

Value in: "owner" | "admin" | "developer" | "finance" | "viewer"
curl -X POST "https://globalymint.com/api/v1/team/invites" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "email": "user@example.com",
    "role": "owner"
  }'

The invite, its one-time token and the accept link.

{
  "data": {
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "emailLower": "user@example.com",
    "role": "owner",
    "status": "pending",
    "expiresAt": "2019-08-24T14:15:22Z",
    "createdAt": "2019-08-24T14:15:22Z",
    "token": "string",
    "accept_url": "http://example.com"
  },
  "_agent": {
    "summary": "string",
    "status": "ok",
    "next_actions": [
      "string"
    ],
    "warnings": [
      "string"
    ]
  },
  "api_version": "2026-07-01"
}