Organization Invites
Gets the list of all invites for the specified organization
Unique ID of the organization
123e4567-e89b-12d3-a456-426614174000
Page number for pagination
1
Example: 1
Number of items per page
20
Example: 20
Filter by invite status
pending
Possible values: Filter by invite type
member
Possible values: List of invites retrieved successfully
Internal server error
GET /memberships/orgs/{organisationId}/invites HTTP/1.1
Host: api.example.com
Accept: */*
{
"data": [
{
"id": "invite123-def6-7890-abcd-ef1234567890",
"code": "ABC12345",
"type": "member",
"channel": "email",
"status": "pending",
"organisationId": "123e4567-e89b-12d3-a456-426614174000",
"channelRouting": {
"email": "john.doe@example.com"
},
"details": {
"member": {
"title": "Mr.",
"displayName": "John Doe",
"orgScopes": [
"read",
"write"
],
"orgRoles": [
"member"
]
}
},
"createdAt": "2024-01-15T10:30:00Z",
"expiresAt": "2024-02-15T10:30:00Z"
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 1,
"totalPages": 1,
"hasNext": false,
"hasPrev": false
}
}
Creates a new invitation to the organization, collective, or team
Unique ID of the organization
123e4567-e89b-12d3-a456-426614174000
Type of invitation
member
Possible values: Communication channel for the invitation
email
Possible values: Detailed information about the invitation based on type
Custom message to include in the invitation
Welcome to our team!
When the invitation expires (defaults to 30 days)
2024-02-15T10:30:00Z
Invitation created successfully
Internal server error
POST /memberships/orgs/{organisationId}/invites HTTP/1.1
Host: api.example.com
Content-Type: application/json
Accept: */*
Content-Length: 296
{
"type": "member",
"channel": "email",
"details": {
"member": {
"title": "Mr.",
"displayName": "John Doe",
"orgScopes": [
"read",
"write",
"delete"
],
"orgRoles": [
"admin"
]
}
},
"channelRouting": {
"email": "john.doe@example.com"
},
"customMessage": "Welcome to Bloque! We're excited to have you join our engineering team."
}
{
"id": "invite123-def6-7890-abcd-ef1234567890",
"code": "ABC12345",
"type": "member",
"channel": "email",
"status": "pending",
"organisationId": "123e4567-e89b-12d3-a456-426614174000",
"channelRouting": {
"email": "john.doe@example.com"
},
"details": {
"member": {
"title": "Mr.",
"displayName": "John Doe",
"orgScopes": [
"read",
"write",
"delete"
],
"orgRoles": [
"admin"
]
}
},
"customMessage": "Welcome to Bloque! We're excited to have you join our engineering team.",
"createdAt": "2024-01-15T10:30:00Z",
"expiresAt": "2024-02-15T10:30:00Z"
}
Gets the information of a specific invite
Unique ID of the organization
123e4567-e89b-12d3-a456-426614174000
Unique ID of the invite
invite123-def6-7890-abcd-ef1234567890
Invite information retrieved successfully
Internal server error
GET /memberships/orgs/{organisationId}/invites/{inviteId} HTTP/1.1
Host: api.example.com
Accept: */*
{
"id": "invite123-def6-7890-abcd-ef1234567890",
"code": "ABC12345",
"type": "team",
"channel": "email",
"status": "pending",
"organisationId": "123e4567-e89b-12d3-a456-426614174000",
"channelRouting": {
"email": "alex.johnson@example.com"
},
"details": {
"team": {
"teamId": "team123-def6-7890-abcd-ef1234567890",
"teamScopes": [
"read",
"write"
],
"teamRoles": [
"lead"
]
},
"member": {
"title": "Dr.",
"displayName": "Alex Johnson"
}
},
"customMessage": "Lead our engineering team to new heights!",
"createdAt": "2024-01-15T10:30:00Z",
"expiresAt": "2024-02-15T10:30:00Z"
}
Updates the information of a specific invite (only pending invites)
Unique ID of the organization
123e4567-e89b-12d3-a456-426614174000
Unique ID of the invite
invite123-def6-7890-abcd-ef1234567890
Updated custom message
Updated invitation message
Updated expiration date
2024-03-15T10:30:00Z
Invite updated successfully
Internal server error
PUT /memberships/orgs/{organisationId}/invites/{inviteId} HTTP/1.1
Host: api.example.com
Content-Type: application/json
Accept: */*
Content-Length: 128
{
"customMessage": "Updated message: We've expanded your role! Join us as a senior team lead.",
"expiresAt": "2024-03-15T10:30:00Z"
}
{
"id": "invite123-def6-7890-abcd-ef1234567890",
"code": "ABC12345",
"type": "team",
"channel": "email",
"status": "pending",
"organisationId": "123e4567-e89b-12d3-a456-426614174000",
"channelRouting": {
"email": "alex.johnson@example.com"
},
"details": {
"team": {
"teamId": "team123-def6-7890-abcd-ef1234567890",
"teamScopes": [
"read",
"write"
],
"teamRoles": [
"lead"
]
},
"member": {
"title": "Dr.",
"displayName": "Alex Johnson"
}
},
"customMessage": "Updated message: We've expanded your role! Join us as a senior team lead.",
"createdAt": "2024-01-15T10:30:00Z",
"expiresAt": "2024-03-15T10:30:00Z"
}
Cancels a specific invite (only pending invites)
Unique ID of the organization
123e4567-e89b-12d3-a456-426614174000
Unique ID of the invite to cancel
invite123-def6-7890-abcd-ef1234567890
Invite cancelled successfully
Internal server error
DELETE /memberships/orgs/{organisationId}/invites/{inviteId} HTTP/1.1
Host: api.example.com
Accept: */*
{
"success": true,
"message": "Invite successfully cancelled"
}