ChirpieDocs
API Reference

Accounts

List and connect X (Twitter) accounts to post through Chirpie.

List Connected Accounts

GET /api/v1/accounts
Authorization: Bearer chirpie_sk_YOUR_KEY

Response 200 OK

{
  "data": [
    {
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "x_user_id": "123456789",
      "x_username": "chirpie_ai",
      "x_display_name": "Chirpie",
      "x_profile_image_url": "https://pbs.twimg.com/...",
      "is_active": true,
      "created_at": "2026-03-01T00:00:00.000Z"
    }
  ]
}

Account Fields

FieldDescription
idChirpie account UUID — use this as account_id when creating posts
x_user_idX/Twitter numeric user ID
x_usernameX handle (without @)
x_display_nameDisplay name on X
x_profile_image_urlProfile picture URL
is_activetrue if OAuth tokens are valid. false if tokens expired and need re-authorization

If is_active is false, the account's OAuth tokens have expired. The user needs to re-authorize from the dashboard.


Connect an Account

POST /api/v1/accounts
Authorization: Bearer chirpie_sk_YOUR_KEY

No request body is required.

Response 200 OK

{
  "data": {
    "authorization_url": "https://twitter.com/i/oauth2/authorize?..."
  }
}

How it Works

  1. Call POST /api/v1/accounts
  2. Redirect the user to the returned authorization_url
  3. User authorizes Chirpie on X
  4. X redirects to Chirpie's callback URL
  5. Chirpie stores the encrypted OAuth tokens
  6. The account appears in GET /api/v1/accounts

Account Limits

PlanMax X Accounts
Free1
Starter3
Pro10
Scale25
EnterpriseUnlimited

On this page