Skip to content

Invite a member

POST
/orgs/{orgId}/members
curl --request POST \
--url https://example.com/api/v1/orgs/example/members \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "email": "example", "name": "example", "role": "admin" }'

Adds an existing verified user directly or creates a pending invitation and emails an invite link. Requires owner or admin role and the multiUser entitlement.

Requires a session or an org-wide API token; bucket-scoped tokens are rejected with 403.

orgId
required

Organization ID.

string
Media typeapplication/json
object
email
required
string
name
string
role
string
Allowed values: admin member viewer guest

Membership or invitation creation outcome

Media typeapplication/json
object
emailed
required
boolean
inviteUrl
required
Any of:
string
joined
required
boolean
ok
required

Example

{
"ok": true
}

Invalid request input or rule violation.

Media typeapplication/json

Error returned when request input fails schema validation or violates a domain rule.

object
code
required
string
Allowed values: BAD_REQUEST
data
object
issues
required

Field-level validation failures, present when schema validation fails.

Array<object>
object
message
required
string
path
required

Dot-separated field path.

string
message
required

Human-readable error explanation.

string

Example

{
"code": "BAD_REQUEST"
}

Authentication required or credentials invalid.

Media typeapplication/json

Standard REST error envelope.

object
code
required

Machine-readable error code.

string
data

Optional structured error details.

message
required

Human-readable error explanation.

string

Example generated

{
"code": "example",
"data": "example",
"message": "example"
}

Plan or license entitlement required.

Media typeapplication/json

Error returned when an organization lacks a required plan or license entitlement.

object
code
required
string
Allowed values: PAYMENT_REQUIRED
data
object
entitlement
required

Feature or quota gate enforced by the active plan or license.

string
Allowed values: audit buckets customDomains multiUser policies proxiedDelivery sso
message
required

Human-readable error explanation.

string

Example

{
"code": "PAYMENT_REQUIRED",
"data": {
"entitlement": "audit"
}
}

Insufficient role, bucket grant, or token scope.

Media typeapplication/json

Standard REST error envelope.

object
code
required

Machine-readable error code.

string
data

Optional structured error details.

message
required

Human-readable error explanation.

string

Example generated

{
"code": "example",
"data": "example",
"message": "example"
}

Request conflicts with the current state of the resource.

Media typeapplication/json

Standard REST error envelope.

object
code
required

Machine-readable error code.

string
data

Optional structured error details.

message
required

Human-readable error explanation.

string

Example generated

{
"code": "example",
"data": "example",
"message": "example"
}

Unexpected server error. Quote data.requestId when you report it.

Media typeapplication/json

Error returned when Sendcrate or one of its providers fails (5xx).

object
code
required
string
Allowed values: INTERNAL_SERVER_ERROR PROVIDER_FAILED
data
object
debug

Error chain with stack traces. Present only when the server runs in development mode.

Array
requestId

Request reference to quote when you report the error.

string
message
required

Human-readable error explanation.

string

Example

{
"code": "INTERNAL_SERVER_ERROR"
}