Skip to main content
POST
Reference example

Request contract

  • Method and path: POST /apis/v1/social/posts
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/social/posts
  • wait: query; optional
  • Idempotency-Key: header; optional
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

Each platform target is charged separately, only once it is published: an X post costs $0.015, or $0.200 when its effective text contains a URL (media URLs do not select the text-URL price); a post on any other platform costs $0.01. One post may target X together with other platforms. A failed target is not charged, and a target whose own charge is refused (insufficient balance or the request’s maximum price) fails alone while the other targets publish. Draft creation is free. Accepted or unknown responses remain pending; only verified native publication settles each target’s charge once. Send X-AISA-Cost-Mode: quote to get the total before publishing. Your account price may differ; use a request quote where supported.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Idempotency-Key
string

Strongly recommended. Reusing a key within 24 hours returns the original result; a different body returns 409 idempotency_key_reused. Without a key the server derives one from the body in 10-minute buckets and echoes it in the response header.

Required string length: 1 - 191

Query Parameters

wait
boolean

true waits for the platform before answering (also Prefer: wait). Only changes publishNow requests; the default answers 202 publishing at once.

Body

application/json
content
string | null
isDraft
boolean | null
mediaItems
(object | null)[] | null
platforms
(object | null)[] | null
profileId
string | null
Pattern: ^prf_[0-9A-Za-z]{22}$
publishNow
boolean | null
scheduledFor
string<date-time> | null
timezone
string | null
title
string | null

Response

Success

content
string | null
createdAt
string<date-time> | null
id
string | null
mediaItems
(object | null)[] | null
notice
string | null
platforms
(object | null)[] | null
profileId
string | null
Pattern: ^prf_[0-9A-Za-z]{22}$
scheduledFor
string<date-time> | null
status
string | null
timezone
string | null
title
string | null
updatedAt
string<date-time> | null