Partite.ai Conversation API (2.0.0)
Start conversations with a mesh, send them messages, and follow what the mesh does.
Addressing a conversation. Every {conversation_id} in a path is a conversation ID (rcnv_...), or extid= followed by the percent-encoded external ID the conversation was created with, such as extid=thread-42.
Bodies. POST bodies are JSON. To attach files, send multipart/form-data with the same JSON in a part named params and each file in a part named attachments; an input refers to an attached file as {"$ref": "attachment://<filename>"}.
Waiting and streaming. The two POSTs that send a message, and GET on a request, answer with JSON by default. Add ?wait=N to hold the answer until the request leaves running, for up to N seconds (at most 50). Send Accept: text/event-stream or Accept: application/jsonl on a POST to get the new request's events instead of JSON. Resume a stream with GET .../requests/{request_id}/events and Last-Event-ID, never by repeating the POST.
Errors are application/problem+json (RFC 9457). param names the input a problem is with.