v1

latestOpenAPI 3.1.02026-08-0616024.0 KB

Create a scheduled or a draft post

Returns an id of the post

post/post

Query parameters

workspaceIdstring required
Example:cmayvq3hk00017apshay5qezu

Ocoya workspace ID. Get one from GET /workspaces.

Request body

OR
OR

Example request

{
  "caption": "Happy new year everyone!",
  "mediaUrls": [
    "https://yourmediaurl.com"
  ],
  "socialProfileIds": [
    "clh49poxf008x8kov4ncbjty9"
  ],
  "scheduledAt": "2024-01-01T00:00:00Z"
}

Response

Created