Skip to main content
POST
/
invites
Create an invite link
curl --request POST \
  --url https://api.social-api.ai/v1/invites \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "brand_id": "b_01HZ9X3Q4R5M6N7P8V2K0W1J",
  "expires_in_days": 7,
  "platform": "facebook"
}
'
{
  "expires_at": "2026-04-03T12:00:00Z",
  "id": "inv_01HZ9X3Q4R5M6N7P8V2K0W1J",
  "platform": "facebook",
  "token": "a55755cf75f73b56deb3dfe0c993fd36fc4c2bfa7",
  "url": "https://api.social-api.ai/invite/a55755cf..."
}

Authorizations

Authorization
string
header
required

Prefix your API key with "Bearer ". Example: Authorization: Bearer sapi_key_...

Body

application/json

Invite details

brand_id
string
Example:

"b_01HZ9X3Q4R5M6N7P8V2K0W1J"

expires_in_days
integer
Example:

7

platform
string
Example:

"facebook"

Response

Invite created

expires_at
string
Example:

"2026-04-03T12:00:00Z"

id
string
Example:

"inv_01HZ9X3Q4R5M6N7P8V2K0W1J"

platform
string
Example:

"facebook"

token
string
Example:

"a55755cf75f73b56deb3dfe0c993fd36fc4c2bfa7"

url
string
Example:

"https://api.social-api.ai/invite/a55755cf..."