Gatana Documentation
RoutesTeamsTeamidInvitations

/teams/{teamId}/invitations

POST
/teams/{teamId}/invitations
AuthorizationBearer <token>

In: header

Path Parameters

teamId*string

Request Body

application/json

email*string
Match^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
Formatemail
role*string
Value in"member" | "maintainer"

Response Body

application/json

curl -X POST "https://YOUR_ORG_ID.gatana.ai/api/v1/teams/string/invitations" \  -H "Content-Type: application/json" \  -d '{    "email": "user@example.com",    "role": "member"  }'
{
  "invitation": {
    "id": "string",
    "teamId": "string",
    "tenantId": "string",
    "inviterUserId": 0,
    "email": "string",
    "role": "member",
    "token": "string",
    "expiresAt": "string",
    "acceptedAt": "string",
    "createdAt": "string",
    "updatedAt": "string"
  }
}