Skip to main content
POST
/
v1
/
organizations
/
{orgId}
/
members
Add a member to an organization
curl --request POST \
  --url https://api.zeptar.com/v1/organizations/{orgId}/members \
  --header 'Content-Type: application/json' \
  --cookie better-auth.session_token= \
  --data '
{
  "userId": "user_abc123",
  "role": "member"
}
'

Documentation Index

Fetch the complete documentation index at: https://docs.zeptar.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

better-auth.session_token
string
cookie
required

Session cookie set by auth.api.signInEmail (or the OAuth flow). Forwarded automatically by the browser; copy via document.cookie for server-to-server calls during development.

Path Parameters

orgId
string
required

Body

application/json
userId
string
required
Example:

"user_abc123"

role
enum<string>
required
Available options:
owner,
admin,
member
Example:

"member"

Response

201 - undefined