rizamodocs
Posts

Check a post without creating it

POST
/posts/validate

Takes what Create a post takes and creates nothing. problems are what would stop it now; warnings are what would stop it from being scheduled or published later, such as Instagram without an image or a video. Each target says what Rizamo would do to its files.

Authorization

apiKey
headerAuthorizationBearer <token>

An API key from the web app, under Developers. It starts with rz_live_.

Request Body

application/json
  1. body
profileId*string
text*string
Lengthlength <= 5000
targets*array<>

Where the post goes. Each target is one account and format: one Instagram account can take a reel and a story of the same post.

Items1 <= items
mediaIds?array<string>
Default[]
scheduledAt?|
Defaultnull
fields?
Default{}
status?string
Default"draft"
Value in"draft""scheduled"

Response Body

OK

application/json
  1. response
ok*boolean

True when there are no problems: creating it would work.

problems*array<>
warnings*array<>
targets*array<>
Example Request
curl -X POST 'https://api.rizamo.com/v1/posts/validate' \  -H 'Content-Type: application/json' \  -d '{  "profileId": "string",  "text": "string",  "targets": [    {      "accountId": "string"    }  ]}'
Example Response200
{  "ok": true,  "problems": [    {      "accountId": "string",      "message": "string"    }  ],  "warnings": [    {      "accountId": "string",      "message": "string"    }  ],  "targets": [    {      "accountId": "string",      "network": "instagram",      "format": "feed",      "changes": [        {          "mediaId": "string",          "kinds": [            "format"          ],          "message": "string"        }      ]    }  ]}