Lettermint Team API

Read and update team settings, follow usage against your plan, and manage member roles and access.


Get team details

GET
https://api.lettermint.co/v1
/team
Bearer

Returns basic team information with optional includes for related resources.

Get team details › query Parameters

include
​string[]
Enum values:
features
addons

Get team details › Responses

TeamData

id
​string · required
name
​string · required
type
​TeamType · enum · required
Enum values:
personal
business
plan
​Plan · enum · required
Enum values:
free
starter
growth
pro
included_volume
​integer · required

Number of emails included in the team's monthly plan

verified_at
​string | null · date-time · required
created_at
​string · date-time · required
features
​string[]
​TeamAddonData[]
domains_count
​integer
projects_count
​integer
members_count
​integer

Update team settings

PUT
https://api.lettermint.co/v1
/team
Bearer

Updates editable team properties (name).

Update team settings › Request Body

name
​string · maxLength: 255

Update team settings › Responses

Team settings updated

The team after a settings change, with a confirmation message.
​TeamData · required
message
​string · required

Human-readable confirmation


Get team usage statistics

GET
https://api.lettermint.co/v1
/team/usage
Bearer

Returns current and historical email usage data with billing information. Historical usage includes up to 12 most recent periods.

Get team usage statistics › Responses

TeamUsageDetailData

​TeamUsagePeriodData · required
​TeamUsagePeriodData[] · required

Get reusable team roles

GET
https://api.lettermint.co/v1
/team/roles
Bearer

Owner is returned for display but cannot be assigned through the Team API. The additive assignable field tells clients whether a role can be used for a new assignment under the team's current plan.

Get reusable team roles › Responses

Team roles

The reusable roles of the team.
​TeamRoleData[] · required

Create a custom team role

POST
https://api.lettermint.co/v1
/team/roles
Bearer

Custom roles need a plan that includes them. Permissions must include everything they depend on, and role names are unique within the team.

Create a custom team role › Request Body

name
​string · maxLength: 100 · required
permissions
​RbacPermission[] · minItems: 1 · maxItems: 100 · unique · required
Enum values:
team:manage
billing:manage
security:manage
audit:read
support:manage
members:read
members:manage
roles:manage
description
​string | null · maxLength: 255

Create a custom team role › Responses

Custom role created

id
​string · required
name
​string · required
description
​string | null · required
​required
permissions
​RbacPermission[] · required
Enum values:
team:manage
billing:manage
security:manage
audit:read
support:manage
members:read
members:manage
roles:manage
assignable
​boolean · required

Get a team role

GET
https://api.lettermint.co/v1
/team/roles/{roleId}
Bearer

Use the role ID returned by the team-role list.

Get a team role › path Parameters

roleId
​string · required

Get a team role › Responses

TeamRoleData

id
​string · required
name
​string · required
description
​string | null · required
​required
permissions
​RbacPermission[] · required
Enum values:
team:manage
billing:manage
security:manage
audit:read
support:manage
members:read
members:manage
roles:manage
assignable
​boolean · required

Replace a custom team role

PUT
https://api.lettermint.co/v1
/team/roles/{roleId}
Bearer

Replaces the name, description, and complete permission set of a custom role. The change applies to every member, invite, and SCIM group that holds the role. Built-in roles cannot be changed.

Replace a custom team role › path Parameters

roleId
​string · required

Replace a custom team role › Request Body

name
​string · maxLength: 100 · required
permissions
​RbacPermission[] · minItems: 1 · maxItems: 100 · unique · required
Enum values:
team:manage
billing:manage
security:manage
audit:read
support:manage
members:read
members:manage
roles:manage
description
​string | null · maxLength: 255

Replace a custom team role › Responses

TeamRoleData

id
​string · required
name
​string · required
description
​string | null · required
​required
permissions
​RbacPermission[] · required
Enum values:
team:manage
billing:manage
security:manage
audit:read
support:manage
members:read
members:manage
roles:manage
assignable
​boolean · required

Delete a custom team role

DELETE
https://api.lettermint.co/v1
/team/roles/{roleId}
Bearer

A role that is still assigned to members, invites, or SCIM groups needs a replacement role, which receives those assignments. Built-in roles cannot be deleted.

Delete a custom team role › path Parameters

roleId
​string · required

Delete a custom team role › query Parameters

replacement_role_id
​string | null · uuid

Same-team non-Owner role that receives existing assignments. Required only while the deleted role is assigned.

Delete a custom team role › Responses

Role deleted

Confirmation that a request succeeded.
message
​string · required

Human-readable confirmation


Duplicate a team role

POST
https://api.lettermint.co/v1
/team/roles/{roleId}/duplicate
Bearer

Creates a custom role with the same permissions under a new name. Without a description, the copy keeps the source role's description. The Owner role cannot be duplicated.

Duplicate a team role › path Parameters

roleId
​string · required

Duplicate a team role › Request Body

name
​string · maxLength: 100 · required
description
​string | null · maxLength: 255

Duplicate a team role › Responses

Custom role created

id
​string · required
name
​string · required
description
​string | null · required
​required
permissions
​RbacPermission[] · required
Enum values:
team:manage
billing:manage
security:manage
audit:read
support:manage
members:read
members:manage
roles:manage
assignable
​boolean · required

List Team API tokens

GET
https://api.lettermint.co/v1
/team/api-tokens
Bearer

Returns token metadata only. Token values are only returned when a token is created.

List Team API tokens › query Parameters

page[size]
​integer

The number of results that will be returned per page.

Default: 30
page[cursor]
​string

The cursor to start the pagination from.

sort
​string[]
Enum values:
name
-name
created_at
-created_at
Default: ["-created_at"]

List Team API tokens › Responses

Paginated set of TeamApiToken

​TeamApiToken[] · required
path
​string | null · required

Base path for paginator generated URLs.

per_page
​integer · min: 0 · required

Number of items shown per page.

next_cursor
​string | null · required

The "cursor" that points to the next set of items.

next_page_url
​string | null · uri · required
prev_cursor
​string | null · required

The "cursor" that points to the previous set of items.

prev_page_url
​string | null · uri · required

Create a Team API token

POST
https://api.lettermint.co/v1
/team/api-tokens
Bearer

The new token can only have abilities that the requesting token has. It copies the requesting token's IP allowlist, and it can't outlive the requesting token. The token is only returned once.

Create a Team API token › Request Body

name
​string · maxLength: 255 · required

A name that identifies where the token is used

Example: Terraform
abilities
​string[] · required

Abilities for the new token. Each one must also be held by the token that makes the request

Example: ["read:projects","write:projects"]
expires_at
​string | null · date-time

When the token expires, as an ISO 8601 date-time. Defaults to, and can't be later than, the expiry of the token that makes the request

Example: 2027-01-01T00:00:00Z

Create a Team API token › Responses

Team API token created

The new Team API token. Its value is only returned once.
​TeamApiTokenSecret · required

A new Team API token with its value, which is only returned once.

message
​string · required

Human-readable confirmation


Update a Team API token

PUT
https://api.lettermint.co/v1
/team/api-tokens/{tokenId}
Bearer

Changes the token's name or replaces its abilities. A token can only change tokens whose abilities it also has, and only to abilities it has. To add abilities, the token being changed must be limited to the requesting token's IP allowlist and must not expire after it.

Update a Team API token › path Parameters

tokenId
​string · required

Update a Team API token › Request Body

name
​string · maxLength: 255

A name that identifies where the token is used

Example: Terraform
abilities
​string[]

The token's complete list of abilities. Replaces its current abilities. Each one must also be held by the token that makes the request

Example: ["read:projects","write:projects"]

Update a Team API token › Responses

TeamApiToken

A Team API token without its value.
id
​string · required
name
​string · required
abilities
​string[] · required

The token's abilities. * grants every ability

allowed_ips
​string[] · required

IP addresses and ranges allowed to use the token. Empty means any address

​required
expires_at
​string | null · date-time · required
last_used_at
​string | null · date-time · required
created_at
​string · date-time · required

Delete a Team API token

DELETE
https://api.lettermint.co/v1
/team/api-tokens/{tokenId}
Bearer

The token stops working immediately. A token can only delete tokens whose abilities it also has.

Delete a Team API token › path Parameters

tokenId
​string · required

Delete a Team API token › Responses

Team API token deleted

Confirmation that a request succeeded.
message
​string · required

Human-readable confirmation


Get team members

GET
https://api.lettermint.co/v1
/team/members
Bearer

Returns role assignments for teams using reusable roles.

Get team members › query Parameters

page[size]
​integer

The number of results that will be returned per page.

Default: 30
page[cursor]
​string

The cursor to start the pagination from.

filter[project_id]
​string · uuid

Only members who can access this project: members with access to all projects and members selected for it. An unknown project returns an empty list.

Get team members › Responses

Paginated set of TeamMemberData

​TeamMemberData[] · required
path
​string | null · required

Base path for paginator generated URLs.

per_page
​integer · min: 0 · required

Number of items shown per page.

next_cursor
​string | null · required

The "cursor" that points to the next set of items.

next_page_url
​string | null · uri · required
prev_cursor
​string | null · required

The "cursor" that points to the previous set of items.

prev_page_url
​string | null · uri · required

Get a team member

GET
https://api.lettermint.co/v1
/team/members/{userId}
Bearer

Use the user ID returned by the team-member list.

Get a team member › path Parameters

userId
​string · required

Get a team member › Responses

TeamMemberData

id
​string · required
name
​string · required
email
​string · required
​object · required
​TeamMemberProjectAccessData · required
joined_at
​string | null · date-time · required

Remove a team member

DELETE
https://api.lettermint.co/v1
/team/members/{userId}
Bearer

Removes a non-Owner member from the team. Use the user's ID returned by GET /team/members.

Remove a team member › path Parameters

userId
​string · required

Remove a team member › Responses

Member removed

Confirmation that a request succeeded.
message
​string · required

Human-readable confirmation


Replace a team member's assignment

PUT
https://api.lettermint.co/v1
/team/members/{userId}/assignment
Bearer

Replaces the member's non-Owner role and complete project scope atomically. Use the user's ID returned by GET /team/members.

Replace a team member's assignment › path Parameters

userId
​string · required

Replace a team member's assignment › Request Body

role_id
​string · uuid · required
​object · required

Replace a team member's assignment › Responses

TeamMemberData

id
​string · required
name
​string · required
email
​string · required
​object · required
​TeamMemberProjectAccessData · required
joined_at
​string | null · date-time · required

Get team invites

GET
https://api.lettermint.co/v1
/team/invites
Bearer

Returns pending invitations with the role and project access they will receive.

Get team invites › query Parameters

page[size]
​integer

The number of results that will be returned per page.

Default: 30
page[cursor]
​string

The cursor to start the pagination from.

Get team invites › Responses

Paginated set of TeamInviteData

​TeamInviteData[] · required
path
​string | null · required

Base path for paginator generated URLs.

per_page
​integer · min: 0 · required

Number of items shown per page.

next_cursor
​string | null · required

The "cursor" that points to the next set of items.

next_page_url
​string | null · uri · required
prev_cursor
​string | null · required

The "cursor" that points to the previous set of items.

prev_page_url
​string | null · uri · required

Invite a person to the team

POST
https://api.lettermint.co/v1
/team/invites
Bearer

Sends the invitation email. The team needs a free seat on its plan; pending invites do not use one. The Owner role cannot be assigned through an invite.

Invite a person to the team › Request Body

email
​string · email · maxLength: 255 · required
role_id
​string · uuid · required
​object · required

Invite a person to the team › Responses

Invitation created and emailed

id
​string · required
email
​string · required
​object · required
​TeamMemberProjectAccessData · required
created_at
​string · date-time · required

Get a team invite

GET
https://api.lettermint.co/v1
/team/invites/{inviteId}
Bearer

Use the invite ID returned by the team-invite list.

Get a team invite › path Parameters

inviteId
​string · required

Get a team invite › Responses

TeamInviteData

id
​string · required
email
​string · required
​object · required
​TeamMemberProjectAccessData · required
created_at
​string · date-time · required

Replace a pending team invite

PUT
https://api.lettermint.co/v1
/team/invites/{inviteId}
Bearer

Replaces the email, role, and complete project scope of the invitation. A new invitation email is sent only when the email address changes.

Replace a pending team invite › path Parameters

inviteId
​string · required

Replace a pending team invite › Request Body

email
​string · email · maxLength: 255 · required
role_id
​string · uuid · required
​object · required

Replace a pending team invite › Responses

TeamInviteData

id
​string · required
email
​string · required
​object · required
​TeamMemberProjectAccessData · required
created_at
​string · date-time · required

Revoke a pending team invite

DELETE
https://api.lettermint.co/v1
/team/invites/{inviteId}
Bearer

Revoke a pending team invite › path Parameters

inviteId
​string · required

Revoke a pending team invite › Responses

Invitation revoked

Confirmation that a request succeeded.
message
​string · required

Human-readable confirmation