Members and roles
Invite a member
POST
Creates a one-time invitation. Omitting role_id assigns the built-in viewer role. Reissuing an invitation revokes prior active invitations for the same email. The selected role cannot grant permissions the caller does not possess.
bearerAuthheader
AuthorizationBearer <token>Use a Voice API key or connected-app OAuth access token. Authentication.
Idempotency-Key*stringRequired. Reuse the same key to retry this write safely. Retries and idempotency.
Match
^[A-Za-z0-9!#$%&'*+.^_`|~-]+$Length
1 <= length <= 255application/json- body
email*stringFormat
emailLength
length <= 320role_id?stringFormat
uuidInvitation metadata plus its one-time invite URL and best-effort email delivery status.
application/json- response
invitation_id*stringFormat
uuiduser_id*stringFormat
uuidemail*stringFormat
emailrole_id*stringFormat
uuidrole*stringLength
1 <= lengthinvited_by_user_id*|Format
uuidinvited_by_email*|Format
emailstatus*stringValue in
"pending""expired""accepted""revoked"version*integerFormat
int64Range
1 <= valuecreated_at*stringFormat
date-timeupdated_at*stringFormat
date-timeexpires_at*stringFormat
date-timeaccepted_at*|Format
date-timerevoked_at*|Format
date-timeinvite_url*stringLength
1 <= lengthemail_sent*booleanemail_error*string|nullcurl -X POST 'https://api.kejue.co/v1/members' \ -H 'Idempotency-Key: string' \ -H 'Content-Type: application/json' \ -d '{ "email": "user@example.com"}'Example Response
{ "invitation_id": "a6e6785a-3ea9-406c-b873-17eaf2ed5fc9", "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5", "email": "user@example.com", "role_id": "ac4e70c8-d5be-48af-93eb-760f58fc91a9", "role": "string", "invited_by_user_id": "14555a01-60ac-4fbb-b4da-2c40f2467b11", "invited_by_email": "user@example.com", "status": "pending", "version": 1, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z", "expires_at": "2019-08-24T14:15:22Z", "accepted_at": "2019-08-24T14:15:22Z", "revoked_at": "2019-08-24T14:15:22Z", "invite_url": "string", "email_sent": true, "email_error": "string"}