Pogton
Docs Users

API reference

Users

Your users in Pogton Connect are identified by your own user_id. List them with their connected platforms, fetch one with its accounts, and delete one for GDPR requests.

A user is one of your customers. You identify users with your own ID, user_id, up to 255 characters. Pogton creates the user the first time you use the ID in a connect link, a sandbox account or a queue schedule. There is no separate create call.

List users

curl "https://pogton.com/api/v1/users?limit=25" \
  -H "Authorization: Bearer pk_3f9a..."
{
  "data": [
    {
      "user_id": "user_123",
      "account_count": 2,
      "platforms": ["linkedin", "instagram"],
      "created_at": "2026-10-21T09:00:00.000Z"
    }
  ],
  "next_cursor": "eyJpZCI6...",
  "has_more": true
}

Newest first. account_count and platforms count connected accounts only. Page with limit (1 to 100, default 25) and cursor: pass next_cursor from the previous page until has_more is false.

Get a user

curl https://pogton.com/api/v1/users/user_123 \
  -H "Authorization: Bearer pk_3f9a..."
{
  "user_id": "user_123",
  "created_at": "2026-10-21T09:00:00.000Z",
  "accounts": [
    { "id": "j97fk2m8q4r1t6v3w8x0y5z2a7b4c9ed", "platform": "linkedin", "name": "Acme Inc.", "status": "active", "...": "..." }
  ]
}

accounts holds account objects of both modes; check test to tell sandbox accounts apart. URL-encode the user ID if it has characters such as / or @.

Delete a user

For account deletion and GDPR requests:

curl -X DELETE https://pogton.com/api/v1/users/user_123 \
  -H "Authorization: Bearer pk_3f9a..."
{ "success": true, "user_id": "user_123", "deleted_accounts": 2 }

This deletes the user, their connected accounts and all their tokens. Pogton sends account.disconnected with reason: "user_deleted" for each account. Post history stays, without tokens, so your records remain consistent; posts already on the platforms are not deleted. To remove those too, delete the posts first.

An unknown user_id returns 404 user_not_found.