POST/v1/conversations

Conversations

Stateful, server-managed message history with locking and 5,000-message caps.

Request
HTTP
POST
URL
/v1/conversations
Auth
api_key
Try it
# create
curl https://api.fightclub.pro/v1/conversations \
  -H "Authorization: Bearer $FC_API_KEY" \
  -d '{"customer":"cust_42","metadata":{"thread":"support-12"}}'

Parameters

NameTypeDescription
customerstringFC Customer ID owning this conversation.
metadataobjectFree-form metadata.

Response fields

NameTypeDescription
idstringConversation ID (conv_*).
created_atintegerUnix timestamp.
message_countintegerCurrent message count.

Errors

  • 401invalid_api_key, Missing or revoked key.
  • 409conversation_locked, Another writer holds the lock; retry after.

See the full error reference.

Examples