POST
/
v1
/
organizations
/
{organizationSlug}
/
invites
curl --request POST \
  --url https://api.turso.tech/v1/organizations/{organizationSlug}/invites \
  --header 'Content-Type: application/json' \
  --data '{
  "email": "<string>",
  "role": "member"
}'
{
  "invited": {
    "ID": 1,
    "CreatedAt": "2023-01-01T00:00:00Z",
    "UpdatedAt": "2023-01-01T00:00:00Z",
    "DeletedAt": "2023-01-01T00:00:00Z",
    "Role": "member",
    "Email": "iku@turso.tech",
    "OrganizationID": 1,
    "Token": "3e393245b91b41ebad0980bc98349c9d",
    "Organization": {
      "name": "turso",
      "slug": "turso",
      "type": "team",
      "overages": false,
      "blocked_reads": false,
      "blocked_writes": false
    },
    "Accepted": false
  }
}

If you want to invite someone who is already a registered Turso user, you can add them instead.

You must be an owner or admin to invite other users. You can only invite users to a team and not your personal account.

Path Parameters

organizationSlug
string
required

The slug of the organization or user account.

Body

application/json
The user you want to invite to join Turso, and your organization.
email
string
required

The email of the user you want to invite.

role
enum<string>
default:
member

The role given to the user.

Available options:
admin,
member,
viewer

Response

200 - application/json
Successful response
invited
object