SendSeven GmbH Agent Suggestions API
Get AI-powered reply suggestions for conversations based on context and message history.
Get AI-powered reply suggestions for conversations based on context and message history.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/sendseven-com:sendseven-com-agent-suggestions-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: SendSeven Agent Suggestions API
description: Unified messaging API for WhatsApp, Telegram, SMS, and more
version: '20261124.1227'
servers:
- url: https://api.sendseven.com
description: Production
tags:
- name: Agent Suggestions
description: Get AI-powered reply suggestions for conversations based on context and message history.
paths:
/api/v1/conversations/{conversation_id}/suggest:
post:
tags:
- Agent Suggestions
summary: Get Agent Suggestions
description: 'Get AI-powered suggestions for agent based on conversation context.
Searches the knowledge base using recent messages as context and returns
relevant suggestions from FAQs, manuals, and past tickets.
Args:
conversation_id: Conversation ID to get suggestions for
Returns:
Dict with:
- suggestion_id: ID for tracking acceptance
- answer: AI-generated response
- sources: List of relevant documents/tickets
- query: Query used for search
**🔐 Required Scopes:** `conversations:read`'
operationId: get_agent_suggestions_api_v1_conversations__conversation_id__suggest_post
security:
- HTTPBearer: []
parameters:
- name: conversation_id
in: path
required: true
schema:
type: string
title: Conversation Id
requestBody:
content:
application/json:
schema:
anyOf:
- $ref: '#/components/schemas/SuggestRequest'
- type: 'null'
title: Request
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/AgentSuggestionResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v1/suggestions/{suggestion_id}/accept:
post:
tags:
- Agent Suggestions
summary: Accept Suggestion
description: 'Mark a suggestion as accepted by the agent.
This tracks which suggestions are helpful for improving the knowledge base.
Args:
suggestion_id: Suggestion ID to mark as accepted
accepted_source_id: Optional ID of the specific source that was used
ai_answer_event_id: The event id returned by /suggest. Pass it so the
acceptance lands on the right event and the FAQ entries behind the
answer get credited (times_in_sent_reply). Omitted, the event is
matched back from the suggestion''s conversation + query.
Returns:
Success message
**🔐 Required Scopes:** `conversations:update`'
operationId: accept_suggestion_api_v1_suggestions__suggestion_id__accept_post
security:
- HTTPBearer: []
parameters:
- name: suggestion_id
in: path
required: true
schema:
type: string
title: Suggestion Id
- name: accepted_source_id
in: query
required: false
schema:
type: string
title: Accepted Source Id
- name: ai_answer_event_id
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Ai Answer Event Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/SuggestionAcceptResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v1/conversations/{conversation_id}/suggestions:
get:
tags:
- Agent Suggestions
summary: Get Suggestion History
description: 'Get suggestion history for a conversation.
Returns list of previous suggestions made for this conversation.
Args:
conversation_id: Conversation ID
Returns:
List of suggestion records
**🔐 Required Scopes:** `conversations:read`'
operationId: get_suggestion_history_api_v1_conversations__conversation_id__suggestions_get
security:
- HTTPBearer: []
parameters:
- name: conversation_id
in: path
required: true
schema:
type: string
title: Conversation Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: array
items:
type: object
additionalProperties: true
title: Response Get Suggestion History Api V1 Conversations Conversation Id Suggestions Get
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v1/conversations/{conversation_id}/search-similar-tickets:
post:
tags:
- Agent Suggestions
summary: Search Similar Tickets For Conversation
description: '**Retired.** Always returns `410 Gone`.
Similar ticket search was retired in October 2026 (conversation summaries
are no longer indexed for search). Summaries are still stored on each
conversation; list them with `GET /api/v1/knowledge-base/tickets`.
**Required Scopes:** `conversations:read`'
operationId: search_similar_tickets_for_conversation_api_v1_conversations__conversation_id__search_similar_tickets_post
deprecated: true
security:
- HTTPBearer: []
parameters:
- name: conversation_id
in: path
required: true
schema:
type: string
title: Conversation Id
responses:
'410':
description: Gone. Similar ticket search has been retired.
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
input:
title: Input
ctx:
type: object
title: Context
type: object
required:
- loc
- msg
- type
title: ValidationError
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
SuggestionAcceptResponse:
properties:
message:
type: string
title: Message
description: Success message
suggestion_id:
type: string
title: Suggestion Id
description: ID of accepted suggestion
ai_answer_event_id:
anyOf:
- type: string
- type: 'null'
title: Ai Answer Event Id
description: AI answer event marked as accepted, if one was resolved
type: object
required:
- message
- suggestion_id
title: SuggestionAcceptResponse
description: Response when marking a suggestion as accepted.
SuggestionSource:
properties:
id:
anyOf:
- type: string
- type: 'null'
title: Id
description: Source document ID
type:
type: string
title: Type
description: 'Source type: faq, article, ticket, manual'
title:
type: string
title: Title
description: Source title
content:
anyOf:
- type: string
- type: 'null'
title: Content
description: Relevant content snippet
relevance_score:
anyOf:
- type: number
- type: 'null'
title: Relevance Score
description: Relevance score 0-1
ticket_id:
anyOf:
- type: string
- type: 'null'
title: Ticket Id
description: Ticket ID if type is ticket
subject:
anyOf:
- type: string
- type: 'null'
title: Subject
description: Ticket subject
summary:
anyOf:
- type: string
- type: 'null'
title: Summary
description: AI-generated summary
user_intent:
anyOf:
- type: string
- type: 'null'
title: User Intent
description: Detected user intent
resolution:
anyOf:
- type: string
- type: 'null'
title: Resolution
description: Resolution summary
sentiment:
anyOf:
- type: string
- type: 'null'
title: Sentiment
description: Sentiment analysis
tags:
anyOf:
- items:
type: string
type: array
- type: 'null'
title: Tags
description: Associated tags
closed_at:
anyOf:
- type: string
- type: 'null'
title: Closed At
description: When ticket was closed
type: object
required:
- type
- title
title: SuggestionSource
description: A source document used in generating the suggestion.
SuggestRequest:
properties:
kb_only:
type: boolean
title: Kb Only
default: true
detailed_response:
type: boolean
title: Detailed Response
default: false
use_full_conversation:
type: boolean
title: Use Full Conversation
default: true
type: object
title: SuggestRequest
AgentSuggestionResponse:
properties:
suggestion_id:
type: string
title: Suggestion Id
description: Unique ID to track this suggestion
ai_answer_event_id:
anyOf:
- type: string
- type: 'null'
title: Ai Answer Event Id
description: AI answer event id (Managed FAQ telemetry). Pass it to POST /ai-answers/{event_id}/rate and to /suggestions/{id}/accept. NULL when telemetry recording failed — never treat that as an error.
answer:
type: string
title: Answer
description: AI-generated suggested response
no_answer:
type: boolean
title: No Answer
description: True when the knowledge base had no answer (``answer`` is then "" and the call was not charged). Clients show "No suggestion" and never fill the input.
default: false
sources:
items:
$ref: '#/components/schemas/SuggestionSource'
type: array
title: Sources
description: Source documents used
citations:
items:
additionalProperties: true
type: object
type: array
title: Citations
description: In-text citations
query:
type: string
title: Query
description: Query text used for search
confidence:
type: number
maximum: 1.0
minimum: 0.0
title: Confidence
description: Confidence score 0-1
content_format:
type: string
title: Content Format
description: 'Format of `answer`: same literal values as the per-message content_format flag ("markdown" | "plain"). Always "markdown" here — this text is canonical GitHub-flavored markdown AI output. The frontend should tag the resulting message-create send with content_format="markdown" so the send-side renderer converts it to the target channel''s dialect.'
default: markdown
type: object
required:
- suggestion_id
- answer
- query
- confidence
title: AgentSuggestionResponse
description: Response from AI agent suggestion generation.
example:
answer: Based on our documentation, you can reset your password by...
citations: []
confidence: 0.85
query: how do I reset my password
sources:
- relevance_score: 0.95
title: Password Reset
type: faq
suggestion_id: 550e8400-e29b-41d4-a716-446655440000
securitySchemes:
HTTPBearer:
type: http
scheme: bearer