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
Create a post for one or more accounts, now or scheduled. Every account is checked first; one invalid account rejects the whole post.
apiKeyheader
AuthorizationBearer <token>API key from Developer → API keys (gs_…). An unbound key takes the workspace from the X-Workspace header.
idempotency-key?stringLength
length <= 200application/json- body
text?stringLength
length <= 70000Default
""media_ids?array<>Items
items <= 20Default
[]targets*array<>Items
1 <= items <= 50scheduled_at?stringFormat
date-timeidea_id?stringFormat
uuidCreated
application/json- response
post*replayed*booleancurl -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}