Skip to content

Keys, roles and limits

Send the key, read errors, and stay within the rate limits.

Keys

A brand admin creates keys in SocialKuy under Brand → Integrations. Each key belongs to one brand and acts with the role chosen when it was made:

  • Contributor: every post waits for approval, and the key only changes or deletes posts it created itself.
  • Editor: posts follow the brand's editor review and client stage, when those are on, and the key can change any post.

A key never acts as the owner. The token starts with skuy_ and is shown once; SocialKuy keeps only a fingerprint of it. A key stops working when it is revoked, when it expires, when the person who made it stops being a brand admin, or when the account is suspended.

Sending the key

Every request goes to https://app.socialkuy.com/api/v1 with the key as a Bearer token:

curl https://app.socialkuy.com/api/v1/me \
  -H "Authorization: Bearer skuy_your_key"

GET /me answers with the brand, the key's role and scopes, and its limits. It is a good first call to check that everything is set up.

Scopes

  • read: posts, channels, labels, campaigns and media. Every key has it.
  • write: create and change posts, upload and import media.
  • analytics:read: statistics of Facebook, Instagram and Threads channels.

Network data

Posts, statuses and schedules are SocialKuy data and are always available. Network data (post links and ids, the networks' own error messages, statistics and comments) only leaves for Facebook, Instagram and Threads, and only when the key was created with the consent to share it. LinkedIn and X show the channel's name, handle and photo plus SocialKuy's own status codes. YouTube and TikTok never appear in the API or in webhooks.

Times

Send times in ISO 8601 with an offset, for example 2026-11-02T09:00:00+07:00. Times without an offset are refused. Every time you get back is UTC (2026-11-02T02:00:00Z); timezone on a post tells you the brand's own time zone.

Errors

Errors always have the same shape:

{"error": {"code": "validation_failed", "message": "Some fields are not valid.", "fields": {"targets.0.type": ["Facebook cannot post this type."]}}}

Use code in your logic; message is for people and may change. fields only appears with 422 answers. The full list of codes is in the API reference.

Rate limits and retries

Each key may send 120 requests a minute, and each brand 600. Every answer carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset (seconds). A 429 answer adds Retry-After; wait that long before trying again.

Send an Idempotency-Key header with every POST. If the connection drops and you send the same request again with the same key, you get the first answer back instead of a second post. The same key with a different body is refused with idempotency_conflict. Only successful answers are remembered: after a refusal such as media_not_ready or queue_full, fix the cause and send the same request with the same key again. Keys are kept for 24 hours.