POST
/
v1
/
organizations
/
{organizationSlug}
/
members
curl --request POST \
  --url https://api.turso.tech/v1/organizations/{organizationSlug}/members \
  --header 'Content-Type: application/json' \
  --data '{
  "username": "<string>",
  "role": "member"
}'
{
  "member": "iku",
  "role": "owner"
}

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.

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

200
application/json
Successful response
member
any
role
any