Work with this as data
Every API here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for apis
7 MCP tools reach this
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.
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/salesmsg:salesmsg-triggers-api"
All apis
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.
Get an API 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 Specification
openapi: 3.2.0
info:
title: SalesMessage Public Triggers API
description: '## Introduction
This API documentation will start with an overview of the Salesmsg authorization methods and flows, followed by reference information about each specific endpoint. ## Mock Server
Additionally, if you want to try the API requests out on our mock server, then you can import the endpoints and set baseUrl variable in your collection as `https://e33e4a6a-ff9d-419f-a378-ec53560c0bb7.mock.pstmn.io`
## Authentication
Supported authorization methods include: **Personal Access Token (PAT)** and **OAuth2**. Whether to use PAT or regular OAuth2 tokens highly depends on your use case. - **OAuth2** authorization type is to go for in case you want to allow other users to authenticate against SalesMessage in order for your app to use the issued token as well as utilize the SalesMessage’s functionality. - **PAT** authorization type is to go for in case you want to integrate your personal existing account with Salesmsg in order to extend your app’s functionality. PAT are managed by the user, which means that they are tied to a user account. This makes Personal Access Tokens a good choice for development, as well as automation purposes, when an application does only require a single SalesMessage account to manage organizations. ### OAuth2
The first step in implementing OAuth2 is registering an oauth application and retrieving your client ID and client secret. Most people who will be implementing OAuth2 will want to find and utilize a library in the language of their choice. For those implementing OAuth2 from scratch, please see RFC 6749 for details. After you create your application with SalesMessage, make sure that you have your `client_id` and `client_secret` handy. The next step is to figure out which OAuth2 flow is right for your purposes. Here are your options:
- Authorization code grant flow
- Implicit grant flow
##### OAuth2 URLs
| URL | Description |
|-----------------------|------|
| `https://app.salesmessage.com/auth/oauth` | Base authorization URL |
| `https://api.salesmessage.com/pub/v2.3/oauth/token` | Token URL |
#### 1. Authorization code grant flow
The authorization code grant flow is most suitable for **web and mobile applications**. It differs from the other grant types by requiring the application to launch a browser first to begin the integration. The integration consists of the following steps:
1. The application opens a browser to send the user to the OAuth server. 2. The user receives the authorization prompt and approves the application request. 3. The user is redirected back to the app with the authorization code in the query string. 4. The application exchanges the authorization code for an access token. Below, you can find the description of the authorization code grant flow in detail. ##### Get user permission
The application sends the user to a browser to get their permission. To begin the authorization flow, construct and open a URL like:
```
https://app.salesmessage.com/auth/oauth
?response_type=code
&client_id={client_id}
&redirect_uri={redirect_uri}
&scope={scope}
&state={state}
```
##### Examples:
```
# Read/write users
https://app.salesmessage.com/auth/oauth?response_type=code&client_id=269&redirect_uri=https://example.app/callback&scope=users:read%20users:write&state=xcoiv98y2kd22vusuye3kch
# Read contacts
https://app.salesmessage.com/auth/oauth?response_type=code&client_id=269&redirect_uri=https://example.app/callback&scope=contacts:read&state=xcoiv98y2kd22vusuye3kch
```
Here’s each query parameter explained:
| Parameter | Description |
|-----------------------|------|
| `Response_type` | Set to code indicating that you want an authorization code as the response. |
| `Client_id` | The identifier for apps. You will find it on the OAuth Applications page. |
| `Redirect_uri` | Used to redirect to after the user is granted permission or denied permission. The URI needs to have been entered in the Redirect URI field that the user specified at creating the application.'
version: v2.3
servers:
- url: https://api.salesmessage.com/pub/v2.3
tags:
- name: Triggers
description: Triggers
paths:
/triggers:
get:
tags:
- Triggers
summary: Get all triggers
description: 'REQUIRED SCOPES [''triggers:read'']
Get all triggers'
operationId: 3c6c411102fd13a34f932dc98c449c4a
responses:
'200':
description: OK
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Trigger'
security:
- apiAuth:
- triggers:read
x-versions:
- public
post:
tags:
- Triggers
summary: Create trigger
description: 'REQUIRED SCOPES [''triggers:write'']
Create trigger'
operationId: 182b134814ba34eee7f59a3a8b972f29
requestBody:
content:
application/json:
schema:
properties:
name:
description: Name
type: string
message:
description: Message
type: string
is_track_conversion:
description: Keep track of conversions?
type: boolean
default: 'false'
conversion_id:
description: The ID of the Conversation
type: integer
number_id:
description: Number ID
type: integer
send_from:
description: Send from configuration
properties:
type:
type: string
example: send_from_rcs_sender|send_from_number|send_from_smart_inbox
options:
properties:
team_id:
description: Team ID (required for RCS sender and smart inbox)
type: integer
example: 1
number_id:
description: Number ID (required for send_from_number)
type: integer
example: 1
smart_option:
description: Smart inbox option (required for smart inbox)
type: string
example: default
type: object
type: object
type: object
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/Trigger'
'400':
description: Bad Request
content:
application/json:
schema:
properties:
error:
title: error
type: string
type: object
security:
- apiAuth:
- triggers:write
x-versions:
- public
delete:
tags:
- Triggers
summary: Bulk delete triggers
description: 'REQUIRED SCOPES [''triggers:write'']
Bulk delete triggers'
operationId: bed803bfe77b8ef410bf21ed92d3e575
requestBody:
content:
application/json:
schema:
required:
- ids
properties:
ids:
description: Trigger IDs
type: array
items:
type: integer
bulk_all:
description: Bulk all
type: boolean
example: false
type: object
responses:
'200':
description: OK
'422':
description: Unprocessable Entity
content:
application/json:
schema:
properties:
ids:
title: ids
type: string
type: object
security:
- apiAuth:
- triggers:write
x-versions:
- public
/triggers/contacts/{trigger}:
get:
tags:
- Triggers
summary: Get trigger contacts
description: 'REQUIRED SCOPES [''triggers:read'']
Get trigger contacts'
operationId: 39edaacbf2e2f1e9436efe0af84eebf6
parameters:
- name: trigger
in: path
description: The ID of the Trigger
required: true
schema:
type: integer
example: ''
- name: filter
in: query
description: Filter
schema:
type: string
- name: page
in: query
description: The page of a collection to return.
schema:
type: integer
default: '1'
- name: length
in: query
description: The number of items to return per page.
schema:
type: integer
default: '10'
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/ContactResource'
security:
- apiAuth:
- triggers:read
x-versions:
- public
/triggers/contacts/{trigger}/export:
get:
tags:
- Triggers
summary: Export trigger contacts
description: 'REQUIRED SCOPES [''triggers:read'']
Export trigger contacts'
operationId: e4f44a30147c7e21ff2499e2308c131f
parameters:
- name: trigger
in: path
description: The ID of the Trigger
required: true
schema:
type: integer
example: ''
- name: filter
in: query
description: Filter
schema:
type: string
responses:
'200':
description: OK
content:
application/json:
schema:
properties:
url:
type: string
example: https://app.salesmessage.com/export/contacts.csv
type: object
security:
- apiAuth:
- triggers:read
x-versions:
- public
/triggers/{trigger}:
get:
tags:
- Triggers
summary: Get trigger
description: 'REQUIRED SCOPES [''triggers:read'']
Get trigger'
operationId: 4d6478ebabe62dbd90d83d18b806d145
parameters:
- name: trigger
in: path
description: The ID of the Trigger
required: true
schema:
type: integer
example: ''
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/Trigger'
security:
- apiAuth:
- triggers:read
x-versions:
- public
put:
tags:
- Triggers
summary: Update trigger
description: 'REQUIRED SCOPES [''triggers:write'']
Updatetrigger'
operationId: 437c51c981ba18d628a6b28d39bbd8ee
parameters:
- name: trigger
in: path
description: The ID of the Trigger
required: true
schema:
type: integer
example: ''
requestBody:
content:
application/json:
schema:
properties:
name:
description: Name
type: string
message:
description: Message
type: string
number_id:
description: Number ID
type: integer
type: object
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/Trigger'
'400':
description: Bad Request
content:
application/json:
schema:
properties:
error:
title: error
type: string
type: object
security:
- apiAuth:
- triggers:write
x-versions:
- public
delete:
tags:
- Triggers
summary: Delete trigger
description: 'REQUIRED SCOPES [''triggers:write'']
Delete trigger'
operationId: 98d0ccec6edaffef8d74f1828cb562ad
parameters:
- name: trigger
in: path
description: The ID of the Trigger
required: true
schema:
type: integer
example: ''
responses:
'200':
description: OK
security:
- apiAuth:
- triggers:write
x-versions:
- public
/triggers/filters:
get:
tags:
- Triggers
summary: Get all triggers filters
description: 'REQUIRED SCOPES [''triggers:read'']
Get all triggers filters'
operationId: f7e93eb1d323d77c8691a1b356e1e8b0
parameters:
- name: name
in: query
description: Name
required: true
schema:
type: string
responses:
'200':
description: OK
security:
- apiAuth:
- triggers:read
x-versions:
- public
/triggers/search:
get:
tags:
- Triggers
summary: Search trigger
description: 'REQUIRED SCOPES [''triggers:read'']
Search trigger'
operationId: c201e3985e76cae447181518650b5518
parameters:
- name: limit
in: query
description: The maximum number of messages that you want returned from this call.
schema:
type: integer
default: 10
- name: term
in: query
description: The string to search for.
required: true
schema:
type: string
responses:
'200':
description: OK
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Trigger'
security:
- apiAuth:
- triggers:read
x-versions:
- public
/triggers/test:
post:
tags:
- Triggers
summary: Send Test Trigger
description: 'REQUIRED SCOPES [''triggers:write'']
Send Test Trigger'
operationId: ab56c8e9aa52073db694f3717704963d
parameters:
- name: integration_id
in: query
description: The ID of Integration
schema:
type: integer
- name: number
in: query
description: Number
required: true
schema:
type: string
- name: number_id
in: query
description: The ID of the Number
required: true
schema:
type: integer
- name: team_id
in: query
description: Send from RCS inbox (team)
schema:
type: integer
- name: message
in: query
description: Message
schema:
type: string
- name: media_url[]
in: query
description: The url of the media
schema:
type: array
items:
type: string
- name: tags[]
in: query
description: The list of Tags
schema:
type: array
items:
type: integer
responses:
'200':
description: OK
content:
application/json:
schema:
properties:
status:
type: string
message:
type: string
type: object
security:
- apiAuth:
- triggers:write
x-versions:
- public
/triggers/toggle/{trigger}:
put:
tags:
- Triggers
summary: Toggle trigger
description: 'REQUIRED SCOPES [''triggers:write'']
Toggle trigger'
operationId: 7a923c5fc5bc25a471f0cece4fea7ede
parameters:
- name: trigger
in: path
description: The ID of the Trigger
required: true
schema:
type: integer
example: ''
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/Trigger'
security:
- apiAuth:
- triggers:write
x-versions:
- public
components:
schemas:
ContactCustomFieldResource:
description: Class ContactCustomFieldResource
properties:
id:
title: ID
type: integer
custom_field_id:
title: Custom Field ID
type: integer
contact_id:
title: Contact ID
type: integer
field_key:
title: Field Key
type: string
organization_id:
title: Organization ID
type: integer
text:
title: Text
type: string
number:
title: Number
type: integer
date:
title: Date
type: string
created_at:
title: Create Date
type: string
updated_at:
title: Update Date
type: string
value:
title: Value Data
type: array
items:
properties:
type:
title: Type
type: string
value:
title: Value
type: string
type: object
type: object
xml:
name: ContactCustomFieldResource
ContactTagResource:
description: Class ContactTagResource
properties:
id:
title: ID
type: integer
name:
title: Name
type: string
label:
title: Label
type: string
created_at:
title: Created At
type: string
type: object
xml:
name: ContactTagResource
ContactResource:
description: Class ContactResource
properties:
id:
title: ID
description: Returns the contact in array format.
type: integer
owner_id:
title: Owner ID
type: integer
color:
title: Color
type: string
first_name:
title: First name
type: string
last_name:
title: Last name
type: string
full_name:
title: Full name
type: string
email:
title: Email
type: string
photo_url:
title: Photo Url
type: string
number:
title: Number
type: string
country:
title: Country
type: string
country_calling_code:
title: Calling Code
type: string
national_number:
title: National Number
type: string
typeted_number:
title: typeted Number
type: string
is_blocked:
title: typeted Number
type: boolean
opt_out:
title: Opt Out Status
type: boolean
opt_out_at:
title: Opt Out Date
type: string
opt_in_request_at:
title: Opt In Request Date
type: string
opt_in_requests:
title: Opt In Requests
type: array
items:
properties:
number_id:
title: Number ID
type: integer
type: object
opt_in_at:
title: Opt In Date
type: string
shortcode_opt_outs:
title: Shortcode Opted-out
type: array
items:
properties:
id:
title: Opt Out ID
type: integer
number_id:
title: Opt Out Number ID
type: integer
name:
title: Opt Out Number ID
type: string
disabled:
title: Disabled
type: boolean
timestamp:
title: Opt Out Date
type: string
value:
title: Opt Out Value
type: boolean
type: object
created_at:
title: Created At
type: string
updated_at:
title: Updated At
type: string
integration_vendor_id:
title: Integration Vendor Id
type: integer
prevent_autolink:
title: Prevent Autolink
type: boolean
integration:
title: Integration
type: array
items:
properties:
id:
title: Integration ID
type: integer
key:
title: Integration Key
type: string
name:
title: Integration Name
type: string
photo_url:
title: Integration Photo Url
type: string
type: object
custom_fields:
title: Custom Fields
type: array
items:
$ref: '#/components/schemas/ContactCustomFieldResource'
tags:
title: Tags
type: array
items:
$ref: '#/components/schemas/ContactTagResource'
notes:
title: Notes
type: array
items:
properties:
id:
title: ID
type: integer
text:
title: Text
type: string
created_at:
title: Created At
type: string
updated_at:
title: Updated At
type: string
type: object
type: object
xml:
name: ContactResource
Trigger:
title: Trigger
description: Trigger resource
properties:
id:
description: ID of the trigger
type: integer
organization_id:
description: ID of the organization
type: integer
integration_id:
description: ID of the integration
type: string
owner_id:
description: ID of the owner
type: integer
organization_number_id:
description: ID of the organization number
type: integer
number_id:
description: ID of the number
type: integer
team_id:
description: ID of the team
type: integer
is_active:
description: Indicates if the trigger is active
type: boolean
name:
description: Name of the trigger
type: string
type:
description: Type of the trigger
type: string
service_property:
description: Service property of the trigger
type: string
owner_property:
description: Owner property of the trigger
type: string
message:
description: Message of the trigger
type: string
media_url:
description: Media URL of the trigger
type: array
items:
type: string
last_received_date:
description: Last received date of the trigger
type: string
format: date-time
disabled_at:
description: Disabled date of the trigger
type: string
format: date-time
created_at:
description: Creation date of the trigger
type: string
format: date-time
updated_at:
description: Last update date of the trigger
type: string
format: date-time
integration_name:
description: Name of the integration
type: string
tag_ids:
description: IDs of the tags
type: array
items:
type: integer
integration:
description: Integration details
type: object
webhook:
description: Webhook details
type: object
number:
description: Number details
type: object
team:
description: Team details
type: object
tags:
description: Tags details
type: array
items:
type: object
statistics:
description: Statistics details
type: array
items:
type: object
short_urls:
description: Short URLs details
type: array
items:
type: object
owner:
description: Owner details
type: object
analytics:
description: Analytics details
type: object
is_track_conversion:
description: Indicates if the trigger tracks conversion
type: boolean
conversion_id:
description: ID of the conversion
type: integer
is_rvm:
description: Indicates if the trigger is RVM
type: boolean
send_form:
description: Send frim information
type: array
items:
type: integer
all_statistics:
description: Statistics
type: array
items:
type: integer
type: object
securitySchemes:
apiAuth:
type: http
description: Login with email and password to get the authentication token
bearerFormat: JWT
scheme: bearer