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

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
role
enum<string>
default: member

The role given to the user.

Available options:
admin,
member
username
string

The username of an existing Turso user.

Response

200 - application/json
invited
object