Skip to main content
POST
/
v1
/
organizations
/
{organizationSlug}
/
members
Add Member
curl --request POST \
  --url https://api.turso.tech/v1/organizations/{organizationSlug}/members \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "username": "<string>",
  "role": "member"
}
'
{
  "member": "<unknown>",
  "role": "<unknown>"
}
If you want to add someone who is not a registered Turso user, you can create an invite instead.
You must be an owner or admin to add other members. You can only add users to a team and not your personal account.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

organizationSlug
string
required

The slug of the organization or user account.

Body

application/json

The member you want to add.

username
string

The username of an existing Turso user.

role
enum<string>
default:member

The role given to the user.

Available options:
admin,
member,
viewer

Response

Successful response

member
any
role
any