Bedrock Claude Chat Published API (0.1.0)

Download OpenAPI specification:Download

published_api

Published API

Health

For health check

Responses

Response samples

Content type
application/json
null

Post Message

Send chat message

Request Body schema: application/json
Conversationid (string) or Conversationid (null) (Conversationid)

Unique conversation id. If not provided, new conversation will be generated.

required
object (MessageInputWithoutMessageId)
continueGenerate
boolean (Continuegenerate)
Default: false

Responses

Request samples

Content type
application/json
{
  • "conversationId": "string",
  • "message": {
    },
  • "continueGenerate": false
}

Response samples

Content type
application/json
{
  • "conversationId": "string",
  • "messageId": "string"
}

Get Conversation

Get a conversation history. If the conversation does not exist, it will return 404.

path Parameters
conversation_id
required
string (Conversation Id)

Responses

Response samples

Content type
application/json
{
  • "id": "string",
  • "title": "string",
  • "createTime": 0,
  • "messageMap": {
    },
  • "lastMessageId": "string",
  • "botId": "string",
  • "shouldContinue": true
}

Get Message

Get specified message in a conversation. If the message does not exist, it will return 404.

path Parameters
conversation_id
required
string (Conversation Id)
message_id
required
string (Message Id)

Responses

Response samples

Content type
application/json
{
  • "conversationId": "string",
  • "message": {
    },
  • "createTime": 0
}