Skip to main content
POST
Create organization invitation
This endpoint requires an Admin Key with the org:write scope, and the key owner must still be an organization admin at call time (otherwise 403 owner_not_admin).Nicknames only support Chinese characters, letters, and digits (1-32 characters). When omitted, a nickname is generated automatically: for email invitations, the part before @ is used with unsupported characters stripped; for phone invitations, the default nickname user is used — the phone number is never used.

Authorizations

Authorization
string
header
required

Send the Admin API secret as a Bearer token in the Authorization header (Bearer sk-admin-***). Create Admin Keys under Console → Organization → Admin API Keys.

Body

application/json
invitee
string
required

Phone number or email address, per invitee_type.

invitee_type
enum<string>
required

Contact type: phone or email.

Available options:
phone,
email
Example:

"email"

role
enum<string>
required

Organization role the invitee gets upon joining: admin or member.

Available options:
admin,
member
Example:

"member"

nick_name
string

Invitee display nickname (1-32 characters; Chinese characters, letters, and digits only). Generated automatically when omitted: for email invitations the part before @ is used with unsupported characters stripped; phone invitations get the default nickname and never derive from the phone number.

Response

Created invitation (invitee masked).

code
string
required

Invitation code, returned in plain text for exact lookup / identification.

role
enum<string>
required

Organization role the invitee gets upon joining: admin or member.

Available options:
admin,
member
status
enum<string>
required

Invitation status: pending or accepted.

Available options:
pending,
accepted
invitee
string

Masked invitee contact — emails keep the first letter of the local part (e.g. a***@x.com), phone numbers keep the first 3 and last 4 digits (e.g. 138****1234). Applied consistently in list, detail, and create responses.

nick_name
string

Invitee display nickname.