TubeOnAITubeOnAIDevelopers
Skip to Content
TubeOnAITubeOnAIDevelopers

Publish or schedule a post

POST
/v1/ai/posts

Authorization

bearerAuth
headerAuthorizationBearer <token>

Header Parameters

Idempotency-Key*string

Request Body

application/json
  1. body
confirm?boolean

Must be true, sent only after the user's explicit yes to this text, these destinations and this time.

destinations*array<>

1 to 5 destinations.

offset_minutes?|

Minutes east of UTC, only to pick one of the two times a daylight-saving change repeats (e.g. 120 or 60); omit otherwise.

Formatint32
schedule_at?|

Local time YYYY-MM-DDTHH:mm to schedule; omit to publish now.

text*string

The post text.

timezone?|

IANA timezone for schedule_at, e.g. Europe/Berlin.

Response Body

application/json
  1. response
deliveries*array<>
post_id*string

Pass to get_post for delivery status.

Example Request
curl -X POST 'https://beta.app.tubeonai.com/v1/ai/posts' \  -H 'Idempotency-Key: string' \  -H 'Content-Type: application/json' \  -d '{  "destinations": [    {      "id": "string"    }  ],  "text": "string"}'
Example Response
{  "deliveries": [    {      "destination_id": "string",      "id": "string",      "status": "string"    }  ],  "post_id": "string"}