Send Contra Message

PythonSocial Media
POST api.upapi.io/contra-send-message.post

Send a plain-text message into an existing Contra conversation from your own signed-in Contra account and return the id Contra assigned it. Uses your own Contra account; upAPI stores nothing.

contramessagingwrite
AuthAPI key
Cost6 units
Timeout45s
CacheNone

Request schema

FieldTypeDescription
docId
Override the pinned persisted-query id for this call.· default: null
messagereq
stringMessage body as plain text. Converted to Contra's BlockNote format.
proxyUrl
Exit IP pinned to this account. Omit to use the shared pool.· default: null
workspaceIdreq
stringThe sender's workspace id. REQUIRED by Contra: an input missing it comes back as a generic 'An unexpected error occurred.' that names nothing.
conversationIdreq
stringContra chat conversation id to reply in.
sessionCookiesreq
objectContra session cookies for the sender. Your own Contra account's cookies; upAPI stores nothing.

Response schema

FieldTypeDescription
sentAtreq
string
elapsedMsreq
integer
messageIdreq
string
conversationIdreq
string

Try it

Try it

Message body as plain text. Converted to Contra's BlockNote format.

The sender's workspace id. REQUIRED by Contra: an input missing it comes back as a generic 'An unexpected error occurred.' that names nothing.

Contra chat conversation id to reply in.

Contra session cookies for the sender. Your own Contra account's cookies; upAPI stores nothing.

Override the pinned persisted-query id for this call.

Exit IP pinned to this account. Omit to use the shared pool.

Run this endpoint live

Jump in as a guest — no signup — and run contra-send-message.post with your own inputs. Create a free account anytime to get your own API key.

Sign in

Code examples

curl -X POST https://api.upapi.io/contra-send-message.post \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: YOUR_API_KEY' \
  -d '{ "message": "example", "workspaceId": "example", "conversationId": "example", "sessionCookies": {} }'

Developer tools

OpenAPI specImport the spec or collection into Postman, Insomnia, or any codegen tool.