Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Teams

Accept invitation to be a team member

post
/teams/accept-member-invite
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
accept_invitation_tokenstring · max: 4096Required

The token received in the mail

Responses
200

Invitation has been accepted

application/json
idintegerRequired

The team ID

team_owner_idintegerOptional

The team owner ID

owner_user_idinteger · nullableOptional

The workspace user account that currently owns the team (transferable)

namestring · nullableOptional

The team name

organization_namestring · nullableOptional

The organization name for the team (customer entity)

billing_emailstring · nullableOptional

The billing email for the team

post/teams/accept-member-invite
POST /teams/accept-member-invite HTTP/1.1
Host: api-testnet.truvera.io
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 34

{
  "accept_invitation_token": "text"
}
{
  "id": 1,
  "team_owner_id": 1,
  "owner_user_id": 1,
  "name": "text",
  "organization_name": "text",
  "billing_email": "text"
}

Send email invitations to a list of emails

post
/teams/{id}/invite
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idintegerRequired

An ID

Body
emailsarrayRequired

The emails list

Responses
200

Invitations have been sent

application/json

Default response

codeintegerOptional
post/teams/{id}/invite
POST /teams/{id}/invite HTTP/1.1
Host: api-testnet.truvera.io
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 13

{
  "emails": []
}
{
  "code": 1
}

Update a Team

patch
/teams/{id}
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idintegerRequired

An ID

Body
namestring · max: 256Required

The new team name

retentionPolicyobjectOptional

The team data retention policy

storeSubjectRefbooleanOptional

Whether to store the subject reference in the team

Responses
200

Team has been updated

application/json
idintegerRequired

The team ID

team_owner_idintegerOptional

The team owner ID

owner_user_idinteger · nullableOptional

The workspace user account that currently owns the team (transferable)

namestring · nullableOptional

The team name

organization_namestring · nullableOptional

The organization name for the team (customer entity)

billing_emailstring · nullableOptional

The billing email for the team

patch/teams/{id}
PATCH /teams/{id} HTTP/1.1
Host: api-testnet.truvera.io
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 59

{
  "name": "text",
  "retentionPolicy": {},
  "storeSubjectRef": true
}
{
  "id": 1,
  "team_owner_id": 1,
  "owner_user_id": 1,
  "name": "text",
  "organization_name": "text",
  "billing_email": "text"
}

List all Team Member Invitations

get
/teams/{id}/invitations
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idintegerRequired

An ID

Query parameters
offsetinteger · int32Optional

How many items to offset by for pagination

Default: 0
limitinteger · int32 · min: 1 · max: 64Optional

How many items to return at one time (max 64)

Default: 64
statusstringOptional

Filter invitations by status (pending, canceled, accepted)

Responses
200

A paged array of invitations

application/json
idintegerRequired

The team member invitation ID

emailstringRequired

The team member invitation email

statusstring · enumOptional

The team member invitation status

Possible values:
get/teams/{id}/invitations
GET /teams/{id}/invitations HTTP/1.1
Host: api-testnet.truvera.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
  {
    "id": 1,
    "email": "text",
    "status": "pending"
  }
]

Resend the invitation email

post
/teams/{id}/invitations/{invitation_id}/resend
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idintegerRequired

An ID

invitation_idstringRequired

An ID

Responses
200

The invitation has been resent

application/json

Default response

codeintegerOptional
post/teams/{id}/invitations/{invitation_id}/resend
POST /teams/{id}/invitations/{invitation_id}/resend HTTP/1.1
Host: api-testnet.truvera.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "code": 1
}

Cancel the current invitation

post
/teams/{id}/invitations/{invitation_id}/cancel
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idintegerRequired

An ID

invitation_idstringRequired

An ID

Responses
200

The invitation has been canceled.

application/json

Default response

codeintegerOptional
post/teams/{id}/invitations/{invitation_id}/cancel
POST /teams/{id}/invitations/{invitation_id}/cancel HTTP/1.1
Host: api-testnet.truvera.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "code": 1
}

List all Team Members

get
/teams/{id}/members
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idintegerRequired

An ID

Query parameters
offsetinteger · int32Optional

How many items to offset by for pagination

Default: 0
limitinteger · int32 · min: 1 · max: 64Optional

How many items to return at one time (max 64)

Default: 64
Responses
200

A paged array of team members

application/json
idintegerRequired

The team member ID

namestringRequired

The team member name

emailstringOptional

The team member email

imagestringOptional

The team member image

rolestring · enumOptional

The team member role

Possible values:
get/teams/{id}/members
GET /teams/{id}/members HTTP/1.1
Host: api-testnet.truvera.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
  {
    "id": 1,
    "name": "text",
    "email": "text",
    "image": "text",
    "role": "member"
  }
]

Deletes a single team member

delete
/teams/{id}/members/{user_id}
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idintegerRequired

An ID

user_idstringRequired

An ID

Responses
200

Team member deleted

No content

delete/teams/{id}/members/{user_id}
DELETE /teams/{id}/members/{user_id} HTTP/1.1
Host: api-testnet.truvera.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

Update a team member

patch
/teams/{id}/members/{user_id}
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired

An ID

user_idstringRequired

An ID

Body
rolestring · enumRequired

The new team member role

Possible values:
Responses
200

Team member updated

application/json
idintegerRequired

The team member ID

namestringRequired

The team member name

emailstringOptional

The team member email

imagestringOptional

The team member image

rolestring · enumOptional

The team member role

Possible values:
patch/teams/{id}/members/{user_id}
PATCH /teams/{id}/members/{user_id} HTTP/1.1
Host: api-testnet.truvera.io
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 17

{
  "role": "member"
}
{
  "id": 1,
  "name": "text",
  "email": "text",
  "image": "text",
  "role": "member"
}

Last updated

Was this helpful?