{ "opencollection": "1.0.0", "info": { "name": "AFM Access Profiles Chat API", "version": "0.1.0" }, "items": [ { "info": { "name": "Chat", "type": "folder" }, "items": [ { "info": { "name": "Create Chat", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/app/v1/chat", "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Create a new chat session." }, { "info": { "name": "Get Chat", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/app/v1/chat/:id", "params": [ { "name": "id", "value": "", "type": "path" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Get a specific chat session by ID." }, { "info": { "name": "Update Chat", "type": "http" }, "http": { "method": "PUT", "url": "{{baseUrl}}/app/v1/chat/:id", "params": [ { "name": "id", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Update a chat session." }, { "info": { "name": "Delete Chat", "type": "http" }, "http": { "method": "DELETE", "url": "{{baseUrl}}/app/v1/chat/:id", "params": [ { "name": "id", "value": "", "type": "path" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Delete a chat session." }, { "info": { "name": "Get User Chats", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/app/v1/chats", "params": [ { "name": "offset", "value": "", "type": "query" }, { "name": "search", "value": "", "type": "query" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Get paginated chat sessions for the current user.\nOptionally filter by search term in title." }, { "info": { "name": "Get Chat History", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/app/v1/chat/:session_id/history", "params": [ { "name": "session_id", "value": "", "type": "path" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Get conversation history for a chat session." }, { "info": { "name": "Get Session Messages", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/app/v1/chat/:session_id/messages", "params": [ { "name": "session_id", "value": "", "type": "path" }, { "name": "limit", "value": "", "type": "query" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Get messages for a specific chat session." }, { "info": { "name": "Update Message Meta", "type": "http" }, "http": { "method": "PATCH", "url": "{{baseUrl}}/app/v1/chat/:session_id/message/:message_id/meta", "params": [ { "name": "session_id", "value": "", "type": "path" }, { "name": "message_id", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Update the meta field of a message (merges with existing meta).\n\nThe session_id is required to verify user access and ensure the message\nbelongs to the specified session. Returns 404 if the session is not accessible\nor the message doesn't exist within that session." }, { "info": { "name": "Delete Message", "type": "http" }, "http": { "method": "DELETE", "url": "{{baseUrl}}/app/v1/chat/:session_id/message/:message_id", "params": [ { "name": "session_id", "value": "", "type": "path" }, { "name": "message_id", "value": "", "type": "path" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Delete a user or assistant message and its corresponding pair.\n\nThis endpoint deletes the specified user or assistant message along with its paired\nmessage (the next assistant message if a user message is provided, or the previous user\nmessage if an assistant message is provided). Any file attachments stored in S3 are also deleted.\n\n- Only user and assistant messages can be deleted (not system messages)\n- The corresponding paired message is automatically deleted\n- S3 file attachments from both m" }, { "info": { "name": "Flag Message", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/app/v1/chat/flag-response", "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Flag a message for review.\n\nThis endpoint allows users to flag a specific message within a chat session for review. The flagged message\nis associated with the user's organization and can be reviewed by administrators.\n\nReturns a success message upon successful flagging." }, { "info": { "name": "Get User Prompts", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/app/v1/prompts", "params": [ { "name": "skip", "value": "", "type": "query" }, { "name": "limit", "value": "", "type": "query" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Get all prompts for the current user." }, { "info": { "name": "Create Prompt", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/app/v1/prompts", "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Create a new prompt." }, { "info": { "name": "Get Prompt", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/app/v1/prompts/:prompt_id", "params": [ { "name": "prompt_id", "value": "", "type": "path" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Get a specific prompt by ID." }, { "info": { "name": "Update Prompt", "type": "http" }, "http": { "method": "PUT", "url": "{{baseUrl}}/app/v1/prompts/:prompt_id", "params": [ { "name": "prompt_id", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Update an existing prompt." }, { "info": { "name": "Delete Prompt", "type": "http" }, "http": { "method": "DELETE", "url": "{{baseUrl}}/app/v1/prompts/:prompt_id", "params": [ { "name": "prompt_id", "value": "", "type": "path" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Delete a prompt." }, { "info": { "name": "Set Active Prompt", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/app/v1/prompts/set_active", "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Set a prompt as the active prompt for the user." }, { "info": { "name": "Get Chat Models", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/app/v1/chat-models", "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Get all models and tools for the chat interface.\nReturns models with their available tools and all available tools metadata." } ] } ], "bundled": true }