Operations 3
DELETE
/v1/workspaces/{workspace_id}/conversations/{conversation_id}/messages/{message_id}
Delete a message
#
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/oxvo-com:oxvo-com-messages-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: OXVO - Workspace Messages API
description: Workspace API endpoints for day-to-day operations inside OXVO workspaces.
version: 1.1.0
termsOfService: https://oxvo.com/company/terms-conditions
contact:
email: hello@oxvo.com
license:
name: MIT License
url: https://opensource.org/licenses/MIT
servers:
- url: https://api.oxvo.com/
tags:
- name: Messages
description: Send and manage messages inside conversations.
paths:
/v1/workspaces/{workspace_id}/conversations/{conversation_id}/messages:
parameters:
- $ref: '#/components/parameters/workspace_id'
- $ref: '#/components/parameters/conversation_id'
get:
tags:
- Messages
operationId: list-all-messages
summary: Get messages
security:
- userApiKey: []
description: List all messages of a conversation
parameters:
- name: after
in: query
schema:
type: integer
description: Fetch messages after the message with this ID. Returns up to 100 messages in ascending order.
- name: before
in: query
schema:
type: integer
description: Fetch messages before the message with this ID. Returns up to 20 messages in ascending order.
responses:
'200':
description: Success
content:
application/json:
schema:
type: object
properties:
meta:
type: object
properties:
labels:
type: array
items:
type: string
additional_attributes:
type: object
contact:
$ref: '#/components/schemas/contact'
assignee:
$ref: '#/components/schemas/agent'
agent_last_seen_at:
type:
- string
- 'null'
format: date-time
assignee_last_seen_at:
type:
- string
- 'null'
format: date-time
payload:
type: array
description: Array of messages
items:
$ref: '#/components/schemas/message'
'404':
description: Conversation not found
content:
application/json:
schema:
$ref: '#/components/schemas/bad_request_error'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/bad_request_error'
post:
tags:
- Messages
operationId: create-a-new-message-in-a-conversation
summary: Create New Message
description: 'Create a new message in the conversation.
## WhatsApp Template Messages
For WhatsApp channels, you can send structured template messages using the `template_params` field.
Templates must be pre-approved in WhatsApp Business Manager.
### Example Templates
**Text with Image Header:**
```json
{
"content": "Hi your order 121212 is confirmed. Please wait for further updates",
"template_params": {
"name": "order_confirmation",
"category": "MARKETING",
"language": "en",
"processed_params": {
"body": {
"1": "121212"
},
"header": {
"media_url": "https://picsum.photos/200/300",
"media_type": "image"
}
}
}
}
```
**Text with Copy Code Button:**
```json
{
"content": "Special offer! Get 30% off your next purchase. Use the code below",
"template_params": {
"name": "discount_coupon",
"category": "MARKETING",
"language": "en",
"processed_params": {
"body": {
"discount_percentage": "30"
},
"buttons": [{
"type": "copy_code",
"parameter": "SAVE20"
}]
}
}
}
```'
security:
- userApiKey: []
- agentBotApiKey: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/conversation_message_create_payload'
responses:
'200':
description: Success
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/generic_id'
- $ref: '#/components/schemas/message'
'404':
description: Conversation not found
content:
application/json:
schema:
$ref: '#/components/schemas/bad_request_error'
'403':
description: Access denied
content:
application/json:
schema:
$ref: '#/components/schemas/bad_request_error'
/v1/workspaces/{workspace_id}/conversations/{conversation_id}/messages/{message_id}:
parameters:
- $ref: '#/components/parameters/workspace_id'
- $ref: '#/components/parameters/conversation_id'
- $ref: '#/components/parameters/message_id'
delete:
tags:
- Messages
operationId: delete-a-message
summary: Delete a message
security:
- userApiKey: []
description: Delete a message and it's attachments from the conversation.
responses:
'200':
description: Success
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/bad_request_error'
'404':
description: The message or conversation does not exist in the account
content:
application/json:
schema:
$ref: '#/components/schemas/bad_request_error'
components:
schemas:
request_error:
title: RequestErrorItem
description: Field-level error object included in standard error responses.
type: object
properties:
field:
type: string
description: Request field related to the error.
message:
type: string
description: Human-readable error message for the field.
code:
type: string
description: Stable error code for programmatic handling.
message:
type: object
properties:
id:
type: number
description: The ID of the message
content:
type: string
description: The text content of the message
account_id:
type: number
description: The ID of the account
inbox_id:
type: number
description: The ID of the inbox
conversation_id:
type: number
description: The ID of the conversation
message_type:
type: integer
enum:
- 0
- 1
- 2
- 3
description: The type of the message
created_at:
type: integer
description: The time at which message was created
updated_at:
type:
- integer
- string
description: The time at which message was updated
private:
type: boolean
description: The flags which shows whether the message is private or not
status:
type:
- string
- 'null'
enum:
- sent
- delivered
- read
- failed
- null
description: The status of the message
source_id:
type:
- string
- 'null'
description: The source ID of the message
content_type:
type:
- string
- 'null'
enum:
- text
- input_text
- input_textarea
- input_email
- input_select
- cards
- form
- article
- incoming_email
- input_csat
- integrations
- sticker
- voice_call
- null
description: The type of the template message
content_attributes:
type: object
description: The content attributes for each content_type
sender_type:
type:
- string
- 'null'
enum:
- Contact
- User
- AgentBot
- Captain::Assistant
- null
description: The type of the sender
sender_id:
type:
- number
- 'null'
description: The ID of the sender
external_source_ids:
type: object
description: The external source IDs of the message
additional_attributes:
type: object
description: The additional attributes of the message
processed_message_content:
type:
- string
- 'null'
description: The processed message content
sentiment:
type:
- object
- 'null'
description: The sentiment of the message
conversation:
type:
- object
- 'null'
description: The conversation object
attachment:
type:
- object
- 'null'
description: The file object attached to the image
sender:
type: object
description: User/Agent/AgentBot object
conversation_message_create_payload:
type: object
required:
- content
properties:
content:
type: string
description: The content of the message
example: Hello, how can I help you?
message_type:
type: string
enum:
- outgoing
- incoming
description: The type of the message
example: outgoing
private:
type: boolean
description: Flag to identify if it is a private note
example: false
content_type:
type: string
enum:
- text
- input_email
- cards
- input_select
- form
- article
description: Content type of the message
example: text
content_attributes:
type: object
description: Attributes based on the content type
example: {}
campaign_id:
type: integer
description: The campaign id to which the message belongs
example: 1
template_params:
type: object
description: WhatsApp template parameters for sending structured messages
required:
- name
- category
- language
- processed_params
properties:
name:
type: string
description: Name of the WhatsApp template (must be approved in WhatsApp Business Manager)
example: purchase_receipt
category:
type: string
enum:
- UTILITY
- MARKETING
- SHIPPING_UPDATE
- TICKET_UPDATE
- ISSUE_RESOLUTION
description: Category of the template
example: UTILITY
language:
type: string
description: Language code of the template (BCP 47 format)
example: en_US
processed_params:
type: object
description: Processed template parameters organized by component type
properties:
body:
type: object
description: Body component parameters with variable placeholders
additionalProperties:
type: string
example:
'1': Visa
'2': Nike
'3': Bill
header:
type: object
description: Header component parameters for media templates
properties:
media_url:
type: string
format: uri
description: Publicly accessible URL for IMAGE, VIDEO, or DOCUMENT headers
example: https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf
media_type:
type: string
enum:
- image
- video
- document
description: Type of media for the header
example: document
buttons:
type: array
description: Button component parameters for interactive templates
items:
type: object
properties:
type:
type: string
enum:
- url
- copy_code
description: Type of button parameter
parameter:
type: string
description: Dynamic parameter value for the button
example: SSFSDFSD
bad_request_error:
title: BadRequestError
description: Standard error envelope returned when request validation fails or the request cannot be processed.
type: object
properties:
description:
type: string
description: Human-readable summary of the failure.
errors:
type: array
description: Field-level validation and processing errors.
items:
$ref: '#/components/schemas/request_error'
contact:
type: object
properties:
payload:
type: array
items:
type: object
properties:
additional_attributes:
type: object
description: The object containing additional attributes related to the contact
availability_status:
type: string
description: The availability status of the contact
email:
type: string
description: The email address of the contact
id:
type: integer
description: The ID of the contact
name:
type: string
description: The name of the contact
phone_number:
type: string
description: The phone number of the contact
blocked:
type: boolean
description: Whether the contact is blocked
identifier:
type: string
description: The identifier of the contact
thumbnail:
type: string
description: The thumbnail of the contact
custom_attributes:
type: object
description: The custom attributes of the contact
example:
attribute_key: attribute_value
signed_up_at: dd/mm/yyyy
last_activity_at:
type: integer
description: The last activity at of the contact
created_at:
type: integer
description: The created at of the contact
contact_inboxes:
type: array
items:
$ref: '#/components/schemas/contact_inboxes'
inbox_contact:
type: object
properties:
id:
type: number
description: ID of the inbox
avatar_url:
type: string
description: The avatar image of the inbox
channel_id:
type: number
description: The ID of the channel
name:
type: string
description: The name of the inbox
channel_type:
type: string
description: The type of the inbox
provider:
type: string
description: The provider of the inbox
contact_inboxes:
type: object
properties:
source_id:
type: string
description: Contact Inbox Source Id
inbox:
$ref: '#/components/schemas/inbox_contact'
generic_id:
type: object
properties:
id:
type: number
agent:
type: object
properties:
id:
type: integer
account_id:
type: integer
availability_status:
type: string
enum:
- available
- busy
- offline
description: The availability status of the agent computed by OXVO.
auto_offline:
type: boolean
description: Whether the availability status of agent is configured to go offline automatically when away.
confirmed:
type: boolean
description: Whether the agent has confirmed their email address.
email:
type: string
description: The email of the agent
available_name:
type: string
description: The available name of the agent
name:
type: string
description: The name of the agent
role:
type: string
enum:
- agent
- administrator
description: The role of the agent
thumbnail:
type: string
description: The thumbnail of the agent
custom_role_id:
type:
- integer
- 'null'
description: The custom role id of the agent
parameters:
workspace_id:
in: path
name: workspace_id
schema:
type: integer
required: true
description: The numeric ID of the workspace
conversation_id:
in: path
name: conversation_id
schema:
type: integer
required: true
description: The numeric ID of the conversation
message_id:
in: path
name: message_id
schema:
type: integer
required: true
description: The numeric ID of the message
securitySchemes:
userApiKey:
type: apiKey
in: header
name: api_access_token
description: '**User access token** for Workspace APIs. Use this token when your integration acts on behalf of a teammate inside a workspace.
- Typical use-cases: contacts, conversations, inbox workflows, reporting, and teammate-scoped configuration tasks.
- Send the token in the `api_access_token` request header.
**Where to get it**
- In OXVO: **Profile -> API access tokens**
- Self-managed deployments may provide additional admin-managed token flows.
**Security best practices**
- Store tokens server-side only (never embed in browser or mobile code).
- Rotate regularly and revoke immediately when access changes.
'
agentBotApiKey:
type: apiKey
in: header
name: api_access_token
description: '**Bot access token** for Workspace APIs. Use this token for bot integrations that automate conversation workflows.
- Typical use-cases: automated replies, enrichment, and workflow actions inside workspace inboxes.
- Send the token in the `api_access_token` request header.
**Where to get it**
- In OXVO: **Settings -> Developer -> Bots**
**Security best practices**
- Keep tokens in secure server-side storage only.
- Use one token per bot integration, and rotate/revoke on ownership changes.
'
x-tagGroups:
- name: Workspace & access
tags:
- Workspace settings
- Agents
- Teams
- Profile
- name: Inbox & channels
tags:
- Inboxes
- Integrations
- name: Customers & data
tags:
- Contacts
- Customer labels
- Labels
- Custom attributes
- name: Conversations & messaging
tags:
- Conversations
- Messages
- Assignment
- Conversation labels
- Macros
- Saved views
- name: Automation & events
tags:
- Automation rules
- Webhooks
- name: Bot automation
tags:
- Bot installations
- name: Knowledge base
tags:
- Help center
- name: Analytics
tags:
- Reports
- name: Surveys
tags:
- CSAT
- name: Public Chat APIs
tags:
- 'Public Chat: Contacts'
- 'Public Chat: Conversations'
- 'Public Chat: Messages'
x-outputTagGroups: []