Invitations
Manage organization invitations
get
List organization invitations. Requires the 'invitations:read' scope.
Authorizations
Query parameters
limitnumber · min: 1 · max: 1000OptionalDefault:
The number of results to return
100
offsetnumberOptionalDefault:
The number of results to skip
0
statusstring · enumOptionalPossible values:
The status of the invitations to list
includeExpiredbooleanOptionalDefault:
Whether to include expired invitations in the list
false
Responses
200
Response for status 200
application/json
500
An unknown error occurred, trying again might help.
application/json
get
GET /v1/organization/invitations HTTP/1.1
Host: api.tryopine.com
X-API-Key: YOUR_API_KEY
Accept: */*
{
"items": [
{
"status": "PENDING",
"role": "ADMIN",
"id": 1,
"createdAt": "2025-07-06T02:12:18.919Z",
"updatedAt": "2025-07-06T02:12:18.919Z",
"expiresAt": "2025-07-06T02:12:18.919Z",
"inviterUserId": 1,
"inviteeEmail": "text",
"organizationId": 1
}
],
"limit": 1,
"offset": 1,
"totalCount": 1
}
Invite a user to join an organization. Requires the 'invitations:write' scope.
Authorizations
Body
inviteeEmailstring · emailRequired
The email of the user to invite
rolestring · enumRequiredPossible values:
The role of the user to invite
Responses
200
Response for status 200
application/json
500
An unknown error occurred, trying again might help.
application/json
post
POST /v1/organization/invitations HTTP/1.1
Host: api.tryopine.com
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 48
{
"inviteeEmail": "[email protected]",
"role": "ADMIN"
}
{
"status": "PENDING",
"role": "ADMIN",
"id": 1,
"createdAt": "2025-07-06T02:12:18.919Z",
"updatedAt": "2025-07-06T02:12:18.919Z",
"expiresAt": "2025-07-06T02:12:18.919Z",
"inviterUserId": 1,
"inviteeEmail": "text",
"organizationId": 1
}
Revoke an invitation to join an organization. Requires the 'invitations:write' scope.
Authorizations
Path parameters
idnumber · min: 1Required
The ID of the invitation to revoke
Responses
200
Response for status 200
application/json
500
An unknown error occurred, trying again might help.
application/json
post
POST /v1/organization/invitations/{id}/revoke HTTP/1.1
Host: api.tryopine.com
X-API-Key: YOUR_API_KEY
Accept: */*
{
"id": 1
}
Last updated