GET/me
Show the brand and key behind the token
Jawaban
200The brand, the key and its limits.Meerrorbentuk error di bawah, dengan kode yang tetap
curl
curl -X GET "https://app.socialkuy.com/api/v1/me" \
-H "Authorization: Bearer skuy_your_key"Create and read posts for one brand. Each key belongs to one brand and acts with its own role: posts from a Contributor key always go through approval. Times you send must carry an offset (for example 2026-11-02T09:00:00+07:00); times you get back are UTC. Errors always look like {"error": {"code": "...", "message": "...", "fields": {...}}}.
https://app.socialkuy.com/api/v1 · openapi.json · versi 1.0.0
The brand and key behind a token.
GET/me
200The brand, the key and its limits.Meerrorbentuk error di bawah, dengan kode yang tetapcurl
curl -X GET "https://app.socialkuy.com/api/v1/me" \
-H "Authorization: Bearer skuy_your_key"Social accounts the brand posts to. YouTube and TikTok are never listed.
GET/channels
200Channels, oldest first.errorbentuk error di bawah, dengan kode yang tetapcurl
curl -X GET "https://app.socialkuy.com/api/v1/channels" \
-H "Authorization: Bearer skuy_your_key"Labels, campaigns and media files. Posts only take media ids: upload or import first, then wait until the file is ready.
GET/labels
200Labels by name.errorbentuk error di bawah, dengan kode yang tetapcurl
curl -X GET "https://app.socialkuy.com/api/v1/labels" \
-H "Authorization: Bearer skuy_your_key"GET/campaigns
200Campaigns by name.errorbentuk error di bawah, dengan kode yang tetapcurl
curl -X GET "https://app.socialkuy.com/api/v1/campaigns" \
-H "Authorization: Bearer skuy_your_key"POST/media
Sends one file as multipart/form-data. Larger files go through POST /media/imports. The file is processed after upload; use it in a scheduled post once GET /media/{id} says ready.
| Field | Jenis | Keterangan |
|---|---|---|
Idempotency-Key (header) | string | Any unique string up to 255 characters. Sending the same key with the same body within 24 hours returns the first successful answer again (with Idempotent-Replayed: true) instead of doing the work twice. Refusals are not remembered, so a request can be sent again with the same key once its cause is fixed. |
| Field | Jenis | Keterangan |
|---|---|---|
filewajib | string (binary) | |
name | string |
201The new file, usually still processing.Mediaerrorbentuk error di bawah, dengan kode yang tetapcurl
curl -X POST "https://app.socialkuy.com/api/v1/media" \
-H "Authorization: Bearer skuy_your_key" \
-F "[email protected]"GET/media/{id}
| Field | Jenis | Keterangan |
|---|---|---|
id (path)wajib | integer | Media id. |
200The file.Mediaerrorbentuk error di bawah, dengan kode yang tetapcurl
curl -X GET "https://app.socialkuy.com/api/v1/media/{id}" \
-H "Authorization: Bearer skuy_your_key"POST/media/imports
The file is downloaded in the background. Poll GET /media/imports/{id} until media_id is set, then GET /media/{id} until it is ready.
| Field | Jenis | Keterangan |
|---|---|---|
Idempotency-Key (header) | string | Any unique string up to 255 characters. Sending the same key with the same body within 24 hours returns the first successful answer again (with Idempotent-Replayed: true) instead of doing the work twice. Refusals are not remembered, so a request can be sent again with the same key once its cause is fixed. |
| Field | Jenis | Keterangan |
|---|---|---|
urlwajib | string (uri) | |
name | string |
202The import, queued or already done.MediaImporterrorbentuk error di bawah, dengan kode yang tetapcurl
curl -X POST "https://app.socialkuy.com/api/v1/media/imports" \
-H "Authorization: Bearer skuy_your_key" \
-H "Content-Type: application/json" \
-d '{}'GET/media/imports/{id}
| Field | Jenis | Keterangan |
|---|---|---|
id (path)wajib | string | Import id (a ULID). |
200The import.MediaImporterrorbentuk error di bawah, dengan kode yang tetapcurl
curl -X GET "https://app.socialkuy.com/api/v1/media/imports/{id}" \
-H "Authorization: Bearer skuy_your_key"Posts go through the same checks, approval, quota and queue as the app. A Contributor key only changes its own posts. Posts that also go to YouTube or TikTok can be read but not changed.
GET/posts
| Field | Jenis | Keterangan |
|---|---|---|
status (query) | string | draft · in_review · approved · scheduled · rejected |
limit (query) | integer | 1 to 100, default 25. |
cursor (query) | string | next_cursor from the previous page. |
200One page of posts.errorbentuk error di bawah, dengan kode yang tetapcurl
curl -X GET "https://app.socialkuy.com/api/v1/posts" \
-H "Authorization: Bearer skuy_your_key"POST/posts
Answers with the post as it now stands. status tells whether it is scheduled or waiting for approval (in_review with review_stage). Fails without creating anything with media_not_ready, quota_exceeded or queue_full.
| Field | Jenis | Keterangan |
|---|---|---|
Idempotency-Key (header) | string | Any unique string up to 255 characters. Sending the same key with the same body within 24 hours returns the first successful answer again (with Idempotent-Replayed: true) instead of doing the work twice. Refusals are not remembered, so a request can be sent again with the same key once its cause is fixed. |
| Field | Jenis | Keterangan |
|---|---|---|
caption | string | The text every channel uses unless it has its own caption. |
media | array of object | Files for every channel, in order. |
media[].idwajib | integer | A media id from POST /media or a finished import. |
media[].alt_text | string | Description for people who cannot see the image. |
targets | array of object | The channels to post to, one entry each. |
targets[].channel_idwajib | integer | A channel id from GET /channels. |
targets[].typewajib | string | One of the channel's post_types. |
targets[].caption | string | null | |
targets[].own_media | boolean | |
targets[].media | array of object | |
targets[].options | object | Network choices such as first_comment, link, title or thread. |
intentwajib | string | queue takes each channel's next free queue time.draft · schedule · queue · now |
scheduled_at | string | null (date-time) | Required for schedule; must carry an offset. |
label_ids | array of integer | |
campaign_id | integer | null | |
watermark | string | integer | default (the brand's default preset, used when left out), none, or a preset id. On updates, leaving it out keeps the current one. |
201The new post.Posterrorbentuk error di bawah, dengan kode yang tetapcurl
curl -X POST "https://app.socialkuy.com/api/v1/posts" \
-H "Authorization: Bearer skuy_your_key" \
-H "Content-Type: application/json" \
-d '{
"caption": "New on the menu: palm sugar latte.",
"media": [
{
"id": 381
}
],
"targets": [
{
"channel_id": 12,
"type": "feed"
}
],
"intent": "schedule",
"scheduled_at": "2026-11-02T09:00:00+07:00"
}'GET/posts/{id}
| Field | Jenis | Keterangan |
|---|---|---|
id (path)wajib | integer | Post id. |
200The post.Posterrorbentuk error di bawah, dengan kode yang tetapcurl
curl -X GET "https://app.socialkuy.com/api/v1/posts/{id}" \
-H "Authorization: Bearer skuy_your_key"PATCH/posts/{id}
Fields you send replace the current ones; fields you leave out stay. intent is required. Send version (the content_version you read) to refuse the change when someone else edited the post meanwhile (version_conflict).
| Field | Jenis | Keterangan |
|---|---|---|
id (path)wajib | integer | Post id. |
| Field | Jenis | Keterangan |
|---|---|---|
version | integer | |
caption | string | The text every channel uses unless it has its own caption. |
media | array of object | Files for every channel, in order. |
media[].idwajib | integer | A media id from POST /media or a finished import. |
media[].alt_text | string | Description for people who cannot see the image. |
targets | array of object | The channels to post to, one entry each. |
targets[].channel_idwajib | integer | A channel id from GET /channels. |
targets[].typewajib | string | One of the channel's post_types. |
targets[].caption | string | null | |
targets[].own_media | boolean | |
targets[].media | array of object | |
targets[].options | object | Network choices such as first_comment, link, title or thread. |
intentwajib | string | queue takes each channel's next free queue time.draft · schedule · queue · now |
scheduled_at | string | null (date-time) | Required for schedule; must carry an offset. |
label_ids | array of integer | |
campaign_id | integer | null | |
watermark | string | integer | default (the brand's default preset, used when left out), none, or a preset id. On updates, leaving it out keeps the current one. |
200The post after the change.Posterrorbentuk error di bawah, dengan kode yang tetapcurl
curl -X PATCH "https://app.socialkuy.com/api/v1/posts/{id}" \
-H "Authorization: Bearer skuy_your_key" \
-H "Content-Type: application/json" \
-d '{
"caption": "New on the menu: palm sugar latte.",
"media": [
{
"id": 381
}
],
"targets": [
{
"channel_id": 12,
"type": "feed"
}
],
"intent": "schedule",
"scheduled_at": "2026-11-02T09:00:00+07:00"
}'DELETE/posts/{id}
Cancels what has not gone out and moves the post to the trash. Published posts stay on the networks.
| Field | Jenis | Keterangan |
|---|---|---|
id (path)wajib | integer | Post id. |
204Deleted.errorbentuk error di bawah, dengan kode yang tetapcurl
curl -X DELETE "https://app.socialkuy.com/api/v1/posts/{id}" \
-H "Authorization: Bearer skuy_your_key"Daily numbers of Facebook, Instagram and Threads channels, for keys created with consent to share that data.
GET/posts/{id}/insights
Only Facebook, Instagram and Threads targets, and only for keys created with consent to share their data.
| Field | Jenis | Keterangan |
|---|---|---|
id (path)wajib | integer | Post id. |
200Numbers per target.PostInsightserrorbentuk error di bawah, dengan kode yang tetapcurl
curl -X GET "https://app.socialkuy.com/api/v1/posts/{id}/insights" \
-H "Authorization: Bearer skuy_your_key"GET/analytics/channels/{id}
Only Facebook, Instagram and Threads channels, and only for keys created with consent to share their data (consent_required otherwise; not_available for other networks). Days run in the brand time zone. Missing numbers are null, never 0. Numbers are never added up across days or networks.
| Field | Jenis | Keterangan |
|---|---|---|
id (path)wajib | integer | Channel id. |
period (query) | integer | The last 7, 30 or 90 days (default 30, bounded by the plan).7 · 30 · 90 |
month (query) | string | A calendar month, YYYY-MM. |
from (query) | string (date) | Start of a custom range, YYYY-MM-DD (needs to). |
to (query) | string (date) | Last day of a custom range, YYYY-MM-DD. |
200Numbers per day.ChannelInsightserrorbentuk error di bawah, dengan kode yang tetapcurl
curl -X GET "https://app.socialkuy.com/api/v1/analytics/channels/{id}" \
-H "Authorization: Bearer skuy_your_key"This document.
GET/openapi.json
200The OpenAPI 3.1 document.curl
curl -X GET "https://app.socialkuy.com/api/v1/openapi.json"Setiap pengiriman membungkus datanya dalam amplop di bawah (WebhookEnvelope).
post.published
Sent once per channel.
object
post.failed
Sent when retries are over or the network refused. target.failure_code says why.
object
post.uncertain
The connection dropped during the last step. Someone checks the network and decides in the app.
object
post.review_requested
stage is internal (the team) or client.
object
post.approved
The post may wait for the next stage; check post.status. A brand admin may skip the client stage (bypassed with a reason).
object
post.rejected
The post is back to draft.
object
channel.needs_reconnect
Posts to it wait until someone reconnects it in the app.
object
channel.reconnected
Sent after a reconnect fixed a channel that needed one.
object
comment.received
Facebook, Instagram and Threads only, and only to webhooks created with consent to share their data.
object
ping
Sent from "Send test event" in the app.
object
Setiap error dijawab dengan bentuk yang sama; tanggapi error.code.
unauthenticatedinvalid_keykey_revokedkey_expiredapi_disabledaccount_suspendedplan_requiredover_planinsufficient_scopeforbiddenconsent_requirednot_foundmethod_not_allowedpayload_too_largeidempotency_conflictidempotency_in_progresspost_not_editableversion_conflictpost_has_hidden_targetsseries_postvalidation_failedmedia_not_readyquota_exceededqueue_fullnot_availablerate_limitedserver_error| Field | Jenis | Keterangan |
|---|---|---|
errorwajib | object | |
error.codewajib | string | Stable code for machines.unauthenticated · invalid_key · key_revoked · key_expired · api_disabled · account_suspended · plan_required · over_plan · insufficient_scope · forbidden · consent_required · not_found · method_not_allowed · payload_too_large · idempotency_conflict · idempotency_in_progress · post_not_editable · version_conflict · post_has_hidden_targets · series_post · validation_failed · media_not_ready · quota_exceeded · queue_full · not_available · rate_limited · server_error |
error.messagewajib | string | English text for people. |
error.fields | object | Only for validation_failed and the other 422 codes: messages per field, keyed by its path such as targets.0.type. |
| Field | Jenis | Keterangan |
|---|---|---|
idwajib | integer | |
networkwajib | string | facebook · instagram · threads · linkedin · x |
namewajib | string | |
handlewajib | string | null | |
avatar_urlwajib | string | null | |
profile_urlwajib | string | null | |
statuswajib | string | active, expiring and needs_permission still post.active · paused · needs_reconnect · locked · needs_permission · expiring · platform_disabled |
status_reasonwajib | string | null | Why the channel needs attention, as a stable code. |
post_typeswajib | array of string | |
status_detail | string | null | The network's own words. Only for Facebook, Instagram and Threads, with consent. |
| Field | Jenis | Keterangan |
|---|---|---|
idwajib | integer | |
namewajib | string | |
colorwajib | string |
| Field | Jenis | Keterangan |
|---|---|---|
idwajib | integer | |
namewajib | string | |
descriptionwajib | string | null | |
starts_onwajib | string | null (date) | |
ends_onwajib | string | null (date) |
| Field | Jenis | Keterangan |
|---|---|---|
idwajib | integer | |
namewajib | string | |
kindwajib | string | image · gif · video · pdf |
mimewajib | string | |
size_byteswajib | integer | |
widthwajib | integer | null | |
heightwajib | integer | null | |
duration_secondswajib | number | null | |
statuswajib | string | processing · ready · failed · missing |
failure_reasonwajib | string | null | |
created_atwajib | string | null (date-time) | UTC, ISO 8601. |
| Field | Jenis | Keterangan |
|---|---|---|
idwajib | string | A ULID. |
statuswajib | string | queued · running · done · failed · cancelled |
media_idwajib | integer | null | |
failurewajib | string | null | Why the import failed, as a stable code such as too_large or not_a_file. |
| Field | Jenis | Keterangan |
|---|---|---|
channel_idwajib | integer | |
networkwajib | string | facebook · instagram · threads |
periodwajib | object | |
period.fromwajib | string (date) | |
period.untilwajib | string (date) | |
period.timezonewajib | string | |
dayswajib | array of object | |
days[].datewajib | string (date) | |
days[].followerswajib | integer | null | |
days[].viewswajib | integer | null | |
days[].reachwajib | integer | null | |
days[].interactionswajib | integer | null | |
days[].metricswajib | object | |
audiencewajib | object | null | The latest audience breakdown, when the network shares one. |
| Field | Jenis | Keterangan |
|---|---|---|
idwajib | integer | |
alt_textwajib | string | null |
| Field | Jenis | Keterangan |
|---|---|---|
idwajib | integer | |
statuswajib | string | draft · in_review · approved · scheduled · rejected |
review_stagewajib | string | null | Which approval the post waits for while in_review.internal · client |
sourcewajib | string | composer · rss · csv · api · ai · ai_clips |
captionwajib | string | null | |
mediawajib | array of MediaRef | |
targetswajib | array of PostTarget | |
hidden_targetswajib | integer | Targets on YouTube or TikTok, which the API never shows. |
label_idswajib | array of integer | |
campaign_idwajib | integer | null | |
watermarkwajib | object | null | |
watermark.name | string | null | |
watermark.kind | string | null | |
content_versionwajib | integer | Goes up whenever the content changes; send it back as version when you change the post. |
timezonewajib | string | |
app_urlwajib | string (uri) | |
created_atwajib | string | null (date-time) | UTC, ISO 8601. |
updated_atwajib | string | null (date-time) | UTC, ISO 8601. |
| Field | Jenis | Keterangan |
|---|---|---|
channel_idwajib | integer | |
networkwajib | string | facebook · instagram · threads · linkedin · x |
typewajib | string | |
captionwajib | string | null | Own caption for this channel; null follows the post caption. |
own_mediawajib | boolean | |
mediawajib | array of MediaRef | |
optionswajib | object | |
statuswajib | string | pending · queued · publishing · processing · published · failed · uncertain · missed · cancelled · deleted |
scheduled_atwajib | string | null (date-time) | UTC, ISO 8601. |
published_atwajib | string | null (date-time) | UTC, ISO 8601. |
failure_codewajib | string | null | |
failure_messagewajib | string | null | |
external_id | string | null | Facebook, Instagram and Threads only, with consent. |
url | string | null | Facebook, Instagram and Threads only, with consent. |
failure_detail | string | null | The network's own words. Facebook, Instagram and Threads only, with consent. |
| Field | Jenis | Keterangan |
|---|---|---|
caption | string | The text every channel uses unless it has its own caption. |
media | array of object | Files for every channel, in order. |
media[].idwajib | integer | A media id from POST /media or a finished import. |
media[].alt_text | string | Description for people who cannot see the image. |
targets | array of object | The channels to post to, one entry each. |
targets[].channel_idwajib | integer | A channel id from GET /channels. |
targets[].typewajib | string | One of the channel's post_types. |
targets[].caption | string | null | |
targets[].own_media | boolean | |
targets[].media | array of object | |
targets[].options | object | Network choices such as first_comment, link, title or thread. |
intentwajib | string | queue takes each channel's next free queue time.draft · schedule · queue · now |
scheduled_at | string | null (date-time) | Required for schedule; must carry an offset. |
label_ids | array of integer | |
campaign_id | integer | null | |
watermark | string | integer | default (the brand's default preset, used when left out), none, or a preset id. On updates, leaving it out keeps the current one. |
| Field | Jenis | Keterangan |
|---|---|---|
post_idwajib | integer | |
targetswajib | array of object | |
targets[].channel_idwajib | integer | |
targets[].networkwajib | string | facebook · instagram · threads |
targets[].viewswajib | integer | null | |
targets[].reachwajib | integer | null | |
targets[].interactionswajib | integer | null | |
targets[].metricswajib | object | |
targets[].read_atwajib | string | null (date-time) | UTC, ISO 8601. |
| Field | Jenis | Keterangan |
|---|---|---|
idwajib | string | The event id, the same for every webhook that gets this event. |
eventwajib | string | |
occurred_atwajib | string (date-time) | UTC. Deliveries may arrive out of order; use this to order them. |
brandwajib | object | |
brand.idwajib | integer | |
brand.slugwajib | string | |
brand.namewajib | string | |
datawajib | object |
| Field | Jenis | Keterangan |
|---|---|---|
idwajib | integer | |
channel_idwajib | integer | |
networkwajib | string | facebook · instagram · threads |
external_idwajib | string | |
parent_external_idwajib | string | null | |
author_namewajib | string | null | |
textwajib | string | null | |
commented_atwajib | string | null (date-time) | UTC, ISO 8601. |
postwajib | object | |
post.idwajib | integer | null | Our post id when the post went out from this app. |
post.external_idwajib | string | null | |
post.urlwajib | string | null |
| Field | Jenis | Keterangan |
|---|---|---|
brandwajib | object | |
brand.idwajib | integer | |
brand.slugwajib | string | |
brand.namewajib | string | |
brand.timezonewajib | string | IANA time zone the brand plans in, for example Asia/Jakarta. |
keywajib | object | |
key.namewajib | string | |
key.prefixwajib | string | The first 12 characters of the token. |
key.rolewajib | string | editor · contributor |
key.scopeswajib | array of string | |
key.expires_atwajib | string | null (date-time) | UTC, ISO 8601. |
key.meta_consentwajib | boolean | Whether network data of Facebook, Instagram and Threads may be shared with this key. |
limitswajib | object | |
limits.requests_per_minutewajib | integer | |
limits.max_upload_byteswajib | integer |