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

organizationName
string
required

The name of the organization or user.

Body

application/json
username
string

The username of an existing Turso user.

role
enum<string>
default: member

The role given to the user.

Available options:
admin,
member

Response

200 - application/json
member
string

The username for the member.

role
enum<string>

The role assigned to the member. Will be owner, admin or member.

Available options:
owner,
admin,
member