Invite by email (members.manage). Expires in 7 days; replaces pending invitations to the same email.
POST
/v1/orgs/{org}/invitations
const url = 'https://api.replifier.com/v1/orgs/org_01hx0000000000000000000000/invitations';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"email":"hello@example.com","orgRole":"owner","brandScope":"all","brandRoles":[{"brandId":"example","role":"admin"}]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.replifier.com/v1/orgs/org_01hx0000000000000000000000/invitations \ --header 'Content-Type: application/json' \ --data '{ "email": "hello@example.com", "orgRole": "owner", "brandScope": "all", "brandRoles": [ { "brandId": "example", "role": "admin" } ] }'At most 50 invitations per organization per day (429 invite_limit), 3 per day to the same email across all organizations (429 invite_recipient_limit) and 10 on the first day of a new account (429 invite_new_account_limit). If the name of the organization or the inviter looks like a link or domain, the email does not show it.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”org
required
string
Example
org_01hx0000000000000000000000Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
email
required
string format: email
orgRole
required
string
brandScope
string
brandRoles
Array<object>
object
brandId
required
string
role
required
string
Responses
Section titled “Responses”Invitation sent
Media typeapplication/json
object
id
required
string
email
required
string
orgRole
required
string
brandScope
required
string
brandRoles
required
Array<object>
object
brandId
required
string
role
required
string
expiresAt
required
string
Example
{ "orgRole": "owner", "brandScope": "all", "brandRoles": [ { "role": "admin" } ]}Invalid data
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}No session, expired session, or invalid, expired or revoked API key
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Not allowed, API key missing the scope, IP not allowed, or request rejected (csrf_rejected)
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Does not exist or is not visible to you
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Conflict
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Too many attempts
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Internal error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}