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-groups-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 Groups 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: Groups
description: Groups
paths:
/groups:
get:
tags:
- Groups
summary: List groups
description: 'REQUIRED SCOPES [''groups:read'']
Retrieve a list of groups based on query parameters'
operationId: d14527812e023f0a968c85f1edac62c1
parameters:
- name: search
in: query
description: Search term to filter groups by name or description
required: false
schema:
type: string
- name: length
in: query
description: Number of groups to return per page
required: false
schema:
type: integer
default: 20
- name: page
in: query
description: Page number to retrieve
required: false
schema:
type: integer
default: 1
responses:
'200':
description: Successful operation
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/GroupResource'
x-versions:
- public
post:
tags:
- Groups
summary: Create a new group
description: 'REQUIRED SCOPES [''groups:write'']
Creates a new group with specified details and member associations.'
operationId: createGroup
requestBody:
description: Data needed to create a new group
required: true
content:
application/json:
schema:
required:
- name
- members
properties:
name:
type: string
example: New Group
description:
type:
- string
- 'null'
example: A description of the new group
members:
type: array
items:
type: integer
example:
- 1
- 2
- 3
type: object
responses:
'200':
description: Group created successfully
content:
application/json:
schema:
$ref: '#/components/schemas/GroupResource'
x-versions:
- public
/groups/create-integration-group:
post:
tags:
- Groups
summary: Create a new integration group
description: 'REQUIRED SCOPES [''groups:write'']
Creates a new integration group and attaches all users of the organization to it.'
operationId: db4fec66e8ddbac6b9396f1e48737bea
requestBody:
required: true
content:
application/json:
schema:
required:
- integration_team_id
properties:
integration_team_id:
description: The ID of the integration team
type: integer
example: 1
type: object
responses:
'200':
description: Successful operation
content:
application/json:
schema:
$ref: '#/components/schemas/GroupResource'
security:
- bearerAuth: []
x-versions:
- public
/groups/client-mapping/{organization}:
delete:
tags:
- Groups
summary: Remove client team mapping
description: 'REQUIRED SCOPES [''groups:write'']
Remove client team mapping'
operationId: 4676fac28c166881b49d55154b01ce7e
parameters:
- name: organization
in: path
description: The ID of the Organization
required: true
schema:
type: integer
responses:
'204':
description: Response
security:
- apiAuth:
- groups:write
x-versions:
- public
/groups/{group_id}:
delete:
tags:
- Groups
summary: Delete a group
description: 'REQUIRED SCOPES [''groups:write'']
Delete a specific group'
operationId: cf89a1b9cfec6ae5bbfcbd0c982f9209
parameters:
- name: group_id
in: path
description: ID of the group to delete
required: true
schema:
type: integer
format: int64
responses:
'204':
description: Group deleted successfully
x-versions:
- public
/groups/import-integration-teams:
get:
tags:
- Groups
summary: Import integration teams
description: 'REQUIRED SCOPES [''groups:read'']
Imports integration teams from HubSpot'
operationId: importIntegrationTeams
responses:
'200':
description: Success response
content:
application/json:
schema:
properties:
success:
type: string
example: Integration teams imported successfully
type: object
'400':
description: Error response
content:
application/json:
schema:
properties:
error:
properties:
message:
type: string
example: Can't import integration teams
type: object
type: object
security:
- apiAuth:
- groups:read
x-versions:
- public
/groups/integration-teams:
get:
tags:
- Groups
summary: Get groups integrations teams
description: 'REQUIRED SCOPES [''groups:read'']
Get groups integrations teams'
operationId: 3d40d029c65497d8df190e0eb97d2a3b
parameters:
- name: organization
in: query
description: The ID of the Organization
required: true
schema:
type: integer
responses:
'200':
description: OK
content:
application/json:
schema:
type: array
items:
properties:
id:
type: integer
name:
type: string
type: object
security:
- apiAuth:
- groups:read
x-versions:
- public
/groups/map-client/{organization}:
put:
tags:
- Groups
summary: Map client to teams
description: 'REQUIRED SCOPES [''groups:write'']
Map client to teams'
operationId: 9fc76f5f1c0a7ce8201df630a3b11f27
parameters:
- name: organization
in: path
description: The ID of the Organization
required: true
schema:
type: integer
- name: integration_team_ids[]
in: query
description: The IDs of the Teams
required: true
schema:
type: integer
responses:
'200':
description: OK
content:
application/json:
schema:
properties:
status:
type: string
info:
type: string
type: object
security:
- apiAuth:
- groups:write
x-versions:
- public
/groups/refresh-integration-team-contacts/{group}:
get:
tags:
- Groups
summary: Refresh integration team contacts
description: 'REQUIRED SCOPES [''groups:read'']
Refresh integration team contacts'
operationId: b98addce7791939bdc2670a0aa8ff6b7
parameters:
- name: group
in: path
description: Group ID
required: true
schema:
type: integer
responses:
'200':
description: OK
content:
application/json:
schema:
properties:
success:
type: string
example: success
type: object
'404':
description: Not Found
content:
application/json:
schema:
properties:
error:
properties:
message:
type: string
example: User Integration Not Found
type: object
type: object
'400':
description: Bad Request
content:
application/json:
schema:
properties:
error:
properties:
message:
type: string
example: Can`t refresh Teams Contacts
type: object
type: object
security:
- apiAuth:
- groups:read
x-versions:
- public
/groups/refresh-integration-teams-contacts/{organizationId}:
get:
tags:
- Groups
summary: Refresh teams contacts
description: 'REQUIRED SCOPES [''groups:read'']
Refresh teams contacts'
operationId: 291395edd41716f79d87226fcf1ad943
parameters:
- name: organizationId
in: path
description: The ID of the organization
required: true
schema:
type: integer
example: ''
responses:
'200':
description: OK
'404':
description: Not Found
'400':
description: Bad Request
content:
application/json:
schema:
properties:
error:
title: error
type: string
type: object
security:
- apiAuth:
- groups:read
x-versions:
- public
/groups/refresh-integration-teams:
get:
tags:
- Groups
summary: Refresh integration teams
description: 'REQUIRED SCOPES [''groups:read'']
Refresh integration teams'
operationId: 4b1bc0610bd379c66d19b5048f64380f
parameters:
- name: integration_team_id
in: query
description: Describes team, wich members should be updated after syncing with integration
required: false
schema:
type: integer
example: 11
- name: client_id
in: query
description: client id
required: false
schema:
type: integer
example: 11
responses:
'200':
description: OK
'404':
description: Not Found
'400':
description: Bad Request
content:
application/json:
schema:
properties:
error:
title: error
type: string
type: object
security:
- apiAuth:
- groups:read
x-versions:
- public
/groups/update:
put:
tags:
- Groups
summary: Update a group
description: 'REQUIRED SCOPES [''groups:write'']
Update details of a specific group'
operationId: updateGroup
requestBody:
description: Updated group details
required: true
content:
application/json:
schema:
properties:
group_id:
type: integer
example: '1'
name:
type: string
example: Updated Group Name
description:
type: string
example: Updated group description
members:
type: array
items:
type: integer
example:
- 1
- 2
- 3
type: object
responses:
'200':
description: Group updated successfully
content:
application/json:
schema:
$ref: '#/components/schemas/GroupResource'
x-versions:
- public
components:
schemas:
GroupResource:
title: Group Resource
description: Group resource with detailed information
properties:
id:
description: The unique identifier of the group
type: integer
example: 1
name:
description: The name of the group
type: string
example: Development Team
description:
description: The description of the group
type:
- string
- 'null'
example: This group handles all development tasks
members:
description: List of group members (lightweight user info)
type: array
items:
properties:
id:
type: integer
first_name:
type: string
last_name:
type: string
full_name:
type: string
photo_url:
type:
- string
- 'null'
email:
type:
- string
- 'null'
type: object
is_integration_team:
description: Indicates whether the group is an integration team
type: boolean
example: false
integration_team:
description: Nested object if this group is linked to an integration team
properties:
id:
description: The unique identifier of the integration team
type: integer
example: 10
name:
description: The name of the integration team
type: string
example: Core Integration Team
type: object
type: object
xml:
name: GroupResource
securitySchemes:
apiAuth:
type: http
description: Login with email and password to get the authentication token
bearerFormat: JWT
scheme: bearer