Salesmsg Organizations Invitations API

Organizations Invitations

GitHub OpenAPI

Operations 6

GET /organization/invites Get organization's invites #
POST /organization/invites Create organization's invite #
POST /organization/invites/{invitation}/resend Resend the invitation #
GET /organization/invites/{invitation} Get details of a specific invitation #
POST /organization/invites/{invitation} Update the invitation #
DELETE /organization/invites/{invitation} Delete the invitation #

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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/salesmsg:salesmsg-organizations-invitations-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

salesmsg-organizations-invitations-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SalesMessage Public Organizations Invitations 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: Organizations Invitations
  description: Organizations Invitations
paths:
  /organization/invites:
    get:
      tags:
      - Organizations Invitations
      summary: Get organization's invites
      description: 'REQUIRED SCOPES [''organizations-invitations:read'']

        Get organization''s invites'
      operationId: 884f557ec355752a0fd41b8069a173ef
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  invitations:
                    type: array
                    items:
                      properties:
                        id:
                          title: ID
                          type: string
                        organization_id:
                          title: Organization ID
                          type: integer
                        owner_id:
                          title: Owner ID
                          type: integer
                        user_id:
                          title: User ID
                          type: integer
                        email:
                          title: Email
                          type: string
                        team_id:
                          title: Team ID
                          type: integer
                        number:
                          title: Number
                          type: string
                      type: object
                  invitation_requests:
                    type: array
                    items:
                      properties:
                        id:
                          title: ID
                          type: string
                        $integration:
                          title: Integration
                          type: string
                        integration_user_id:
                          title: Integration user ID
                          type: integer
                        organization_id:
                          title: Organization ID
                          type: integer
                        owner_id:
                          title: Owner ID
                          type: integer
                        email:
                          title: Email
                          type: string
                        first_name:
                          title: First name
                          type: string
                        last_name:
                          title: Last name
                          type: string
                        request_date:
                          title: Request date
                          type: string
                      type: object
                type: object
      security:
      - apiAuth:
        - organizations-invitations:read
      x-versions:
      - public
    post:
      tags:
      - Organizations Invitations
      summary: Create organization's invite
      description: 'REQUIRED SCOPES [''organizations-invitations:write'']

        Create organization''s invite'
      operationId: 7d976625d84a15a9c4aa3a5b331fd966
      requestBody:
        content:
          application/json:
            schema:
              type: array
              items:
                properties:
                  email:
                    title: Email
                    type: string
                  role:
                    title: Role
                    type: string
                  team_id:
                    title: Team ID
                    type: integer
                    deprecated: true
                  team_ids:
                    title: Team IDs
                    type: array
                    items:
                      type: integer
                  use_organization_settings:
                    description: Indicates Use Organization Settings or Not
                    type: boolean
                    example: 'true'
                type: object
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  properties:
                    id:
                      title: ID
                      type: string
                    organization_id:
                      title: Organization ID
                      type: integer
                    owner_id:
                      title: Owner ID
                      type: integer
                    user_id:
                      title: User ID
                      type: integer
                    email:
                      title: Email
                      type: string
                    team_id:
                      title: Team ID
                      type: integer
                    number:
                      title: Number
                      type: string
                    use_organization_settings:
                      description: Indicates Use Organization Settings or Not
                      type: boolean
                      example: 'true'
                  type: object
        '422':
          description: Payment error from Stripe
          content:
            application/json:
              schema:
                properties:
                  errors:
                    description: Error messages
                    type: array
                    items:
                      type: string
                type: object
        '500':
          description: Unexpected server error
          content:
            application/json:
              schema:
                properties:
                  errors:
                    description: Error messages
                    type: array
                    items:
                      type: string
                type: object
      security:
      - apiAuth:
        - organizations-invitations:write
      x-versions:
      - public
  /organization/invites/{invitation}/resend:
    post:
      tags:
      - Organizations Invitations
      summary: Resend the invitation
      description: 'REQUIRED SCOPES [''organizations-invitations:write'']

        Resend the invitation'
      operationId: 08f8dfe1bd053129744b739136da6bad
      parameters:
      - name: invitation
        in: path
        description: The ID of the invitation
        required: true
        schema:
          type: string
          example: ''
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  id:
                    title: ID
                    type: string
                  organization_id:
                    title: Organization ID
                    type: integer
                  owner_id:
                    title: Owner ID
                    type: integer
                  user_id:
                    title: User ID
                    type: integer
                  email:
                    title: Email
                    type: string
                  team_id:
                    title: Team ID
                    type: integer
                  number:
                    title: Number
                    type: string
                type: object
      security:
      - apiAuth:
        - organizations-invitations:write
      x-versions:
      - public
  /organization/invites/{invitation}:
    get:
      tags:
      - Organizations Invitations
      summary: Get details of a specific invitation
      description: 'REQUIRED SCOPES [''organizations-invitations:read'']

        Get details of a specific invitation'
      operationId: 15620a5515a029b4e09b6f1e7cdc1511
      parameters:
      - name: invitation
        in: path
        description: ID of the invitation
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              schema:
                properties:
                  id:
                    description: Invitation ID
                    type: integer
                  email:
                    description: Invited user's email
                    type: string
                  token:
                    description: Invitation token
                    type: string
                  url:
                    description: Invitation URL
                    type: string
                  owner_id:
                    description: Owner ID
                    type: integer
                  organization_id:
                    description: Organization ID
                    type: integer
                  user_id:
                    description: User ID if accepted
                    type:
                    - integer
                    - 'null'
                  team_id:
                    description: Team ID if accepted
                    type:
                    - integer
                    - 'null'
                  profile_id:
                    description: User Profile ID if accepted
                    type:
                    - integer
                    - 'null'
                  created_at:
                    description: Creation timestamp
                    type: string
                    format: date-time
                  updated_at:
                    description: Last update timestamp
                    type: string
                    format: date-time
                  user:
                    description: User details if invitation is accepted
                    properties:
                      id:
                        type: integer
                      name:
                        type: string
                      email:
                        type: string
                      profile:
                        properties:
                          id:
                            type: integer
                          first_name:
                            type: string
                          last_name:
                            type: string
                        type: object
                    type:
                    - object
                    - 'null'
                  organization:
                    properties:
                      id:
                        type: integer
                      name:
                        type: string
                    type: object
                type: object
        '404':
          description: Invitation not found
        '401':
          description: Unauthenticated
        '403':
          description: Forbidden
      security:
      - apiAuth:
        - organizations-invitations:read
      x-versions:
      - public
    post:
      tags:
      - Organizations Invitations
      summary: Update the invitation
      description: 'REQUIRED SCOPES [''organizations-invitations:write'']

        Update the invitation'
      operationId: e78bff89bbd09a9ec7e008e813b44059
      parameters:
      - name: invitation
        in: path
        description: The ID of the invitation
        required: true
        schema:
          type: string
          example: ''
      requestBody:
        content:
          application/json:
            schema:
              properties:
                email:
                  description: Email
                  type: string
              type: object
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  id:
                    title: ID
                    type: string
                  organization_id:
                    title: Organization ID
                    type: integer
                  owner_id:
                    title: Owner ID
                    type: integer
                  user_id:
                    title: User ID
                    type: integer
                  email:
                    title: Email
                    type: string
                  team_id:
                    title: Team ID
                    type: integer
                  number:
                    title: Number
                    type: string
                type: object
        '404':
          description: Not Found
      security:
      - apiAuth:
        - organizations-invitations:write
      x-versions:
      - public
    delete:
      tags:
      - Organizations Invitations
      summary: Delete the invitation
      description: 'REQUIRED SCOPES [''organizations-invitations:write'']

        Delete the invitation'
      operationId: 4a800c7ffc9c6be3233a460bf391ae8f
      parameters:
      - name: invitation
        in: path
        description: The ID of the invitation
        required: true
        schema:
          type: string
          example: ''
      responses:
        '200':
          description: OK
        '404':
          description: Not Found
      security:
      - apiAuth:
        - organizations-invitations:write
      x-versions:
      - public
components:
  securitySchemes:
    apiAuth:
      type: http
      description: Login with email and password to get the authentication token
      bearerFormat: JWT
      scheme: bearer