POST
/
v1
/
organizations
/
{organizationName}
/
invites
curl --request POST \
  --url https://api.turso.tech/v1/organizations/{organizationName}/invites \
  --header 'Content-Type: application/json' \
  --data '{
  "email": "<string>",
  "role": "admin"
}'
{
  "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": true
  }
}

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

organizationName
string
required

The name of the organization or user.

Body

application/json
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

Response

200 - application/json
invited
object