API reference

Social accounts

Social accounts belong to a character. Connecting uses the platform’s own OAuth screen: create a connect link, send the account owner to it, and they return to your redirect_url. Platforms: Instagram, TikTok, YouTube, Threads and X (twitter).

Plans include 5 (Influencer) or 15 (Agency) connected accounts across the workspace. Each account connected through the API beyond that costs 50 credits per 30 days.

GET/v1/social/accounts
Scope: socialReturns 200

Connected accounts per character, with fee status.

  • character_idstring

    Only this character.

  • payment_due: true means the monthly fee could not be charged; API posting to that account is paused until it is (retried daily).
curl https://api.oriorai.com/v1/social/accounts \
  -H "Authorization: Bearer $ORIOR_API_KEY"
Response
{
  "data": [
    {
      "object": "social_account",
      "character_id": "Qx8p2LmN4vRt",
      "platform": "tiktok",
      "username": "ava.daily",
      "connected_at": 1758620000000,
      "monthly_fee_credits": 0,
      "payment_due": false
    }
  ],
  "included_accounts": 15,
  "connected_accounts": 4
}
DELETE/v1/social/accounts/{character_id}/{platform}
Scope: socialIdempotency-Key requiredReturns 200

Removes the connection and stops any monthly fee.

  • character_idstringrequired

    Character ID.

  • platformstringrequired

    Platform.

curl -X DELETE https://api.oriorai.com/v1/social/accounts/Qx8p2LmN4vRt/tiktok \
  -H "Authorization: Bearer $ORIOR_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
Response
{
  "object": "social_account",
  "character_id": "Qx8p2LmN4vRt",
  "platform": "tiktok",
  "deleted": true
}