Langsung ke isi
GrowSocmedDokumentasiSocial media command center

Create a post

Create a post for one or more accounts, now or scheduled. Every account is checked first; one invalid account rejects the whole post.

POST
/posts

Create a post for one or more accounts, now or scheduled. Every account is checked first; one invalid account rejects the whole post.

Authorization

apiKey
headerAuthorizationBearer <token>

API key from Developer → API keys (gs_…). An unbound key takes the workspace from the X-Workspace header.

Header Parameters

idempotency-key?string
Lengthlength <= 200

Request Body

application/json
  1. body
text?string
Lengthlength <= 70000
Default""
media_ids?array<>
Itemsitems <= 20
Default[]
targets*array<>
Items1 <= items <= 50
scheduled_at?string
Formatdate-time
idea_id?string
Formatuuid

Response Body

Created

application/json
  1. response
post*
replayed*boolean
Example Request
curl -X POST 'https://socmed.growpaces.com/api/v1/posts' \  -H 'Content-Type: application/json' \  -d '{  "targets": [    {      "account_id": "449e7a5c-69d3-4b8a-aaaf-5c9b713ebc65"    }  ]}'
Example Response201
{  "post": {    "id": "string",    "text": "string",    "status": "scheduled",    "source": "string",    "scheduled_at": "string",    "created_at": "string",    "created_by": {      "id": "string",      "name": "string"    },    "media": [      {        "id": "string",        "type": "image",        "url": "string"      }    ],    "targets": [      {        "id": "string",        "account_id": "string",        "platform": "string",        "username": "string",        "display_name": "string",        "avatar_url": "string",        "status": "pending",        "text": "string",        "media_ids": [          "string"        ],        "permalink": "string",        "error_code": "string",        "error_message": "string",        "published_at": "string",        "options": {          "property1": null,          "property2": null        }      }    ]  },  "replayed": true}