Search Conversations
Search conversations for an organization. Access scoping: - JWT users see the conversations they are a member of. - API keys see the conversations they are a member of: the ones they created or posted in. - ``kind=bots`` (#5144) replaces that rule with the caller's bot threads: read-only through an origin they are a member of, or as a member. For an API key it is its own visible conversations that are bot threads.
Authorization
BearerAuth Botyard API key — see /docs/authentication.
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Request body for searching / listing conversations.
Response Body
application/json
curl -X POST "https://example.com/v1/orgs/string/conversations/search" \ -H "Content-Type: application/json" \ -d '{}'{
"items": [
{
"conversation_id": "string",
"org_id": "string",
"bot_id": "string",
"bot_identity": {
"id": "string",
"slug": "string",
"name": "string",
"avatar_url": "string"
},
"user_id": "string",
"owner_name": "string",
"forked_from_conversation_id": "string",
"fork_info": {
"source_title": "string",
"copied_count": 0,
"forked_at": "2019-08-24T14:15:22Z"
},
"source": "web_chat",
"title": "string",
"status": "active",
"metadata": {
"property1": "string",
"property2": "string"
},
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"last_message_at": "2019-08-24T14:15:22Z",
"unread_count": 0,
"is_pinned": false,
"pin_position": 0,
"has_active_timed_wake": false,
"has_active_process_watch": false,
"viewing_via": {
"kind": "conversation",
"conversation_id": "string",
"bot_id": "string",
"bot_slug": "string",
"title": "string"
},
"origin": {
"conversation_id": "string",
"bot_id": "string",
"bot_slug": "string",
"title": "string",
"relation": "parent"
},
"supports_steering": true,
"supports_queued_edit": true,
"message_search_match": {
"message_id": "string",
"message_ordinal": 0,
"snippet": "string",
"score": 0
},
"viewer_role": "owner",
"is_muted": false,
"member_count": 0,
"added_by": {
"actor_type": "user",
"actor_id": "string",
"name": "string"
},
"added_at": "2019-08-24T14:15:22Z",
"list_kind": "people",
"run_status": {
"run_state": "running",
"turn_started_at": "2019-08-24T14:15:22Z",
"queued_count": 0
}
}
],
"total": 0,
"limit": 0,
"offset": 0,
"has_more": true
}{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"error_code": "string",
"errors": [
{
"pointer": "string",
"detail": "string",
"type": "string"
}
],
"trace_id": "string"
}Create Conversation
Create a new, members-only conversation. A person owns what they create. An API key's conversation belongs to the key's creator, else to its bot with the bot's owner as a member (#5020 4b-1).
List the members of many conversations at once
Members of each requested conversation the caller can see, oldest first. Ids the caller cannot see are returned in ``missing_conversation_ids`` with nothing else about them, exactly like ids that do not exist.