Skip to main content
POST
/
teams
/
invite-links
Create a reusable invite link
curl --request POST \
  --url https://app.autoposting.ai/api-proxy/teams/invite-links \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "groupIds": [
    "group_editor"
  ],
  "maxUses": null,
  "expiresAt": null
}
'
{
  "success": true,
  "data": {
    "id": "link_01HXYZ",
    "token": "abc123xyz",
    "joinUrl": "https://app.autoposting.ai/join/abc123xyz",
    "uses": 0,
    "maxUses": null,
    "expiresAt": null
  }
}

Authorizations

Authorization
string
header
required

API key as Authorization: Bearer sk-social-...

Body

application/json
groupIds
string[]
Example:
["group_editor"]
maxUses
integer | null

Maximum number of times the link can be used; null for unlimited.

Example:

null

expiresAt
string<date-time> | null

ISO 8601 expiry datetime; null for no expiry.

Example:

null

Response

Success

success
boolean
required
Example:

true

data
object
required