Skip to content
OpenPostDocs
OpenPostDocs
Publications

Preview text as publishing images

POST/publications/preview-text-card

Authorization

AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://example.com/publications/preview-text-card" \  -H "Content-Type: application/json" \  -d '{    "social_account_id": "string",    "text": "string"  }'
{  "$schema": "https://example.com/api/v1/schemas/PreviewTextCardOutputBody.json",  "images": [    {      "data_url": "string",      "height": 0,      "width": 0    }  ]}