Partnership Integration Guide
A step-by-step guide for partners to integrate with Salesmsg using OAuth 2.0. Securely connect, sync data, and deliver seamless messaging experiences together.

Our partnership integration guide walks you through everything you need to get up and running quickly. We've built a secure, straightforward OAuth 2.0 implementation that lets your users authenticate seamlessly while keeping their data protected.
Usage Guidelines
Our API uses OAuth 2.0 to keep things secure. Here's what you'll need to do:
Register your application to get your client credentials
Set up the OAuth 2.0 authorization code flow
Use your access token to make API calls
For additional documentation and implementation examples, check out our API documentation.
OAuth 2.0 Flow
This guide provides step-by-step instructions on how to implement OAuth 2.0 authentication with the Salesmsg API to securely connect your application.
1. Register Your Application
Head over to the Salesmsg Developer Portal and register your application to get your:
Client ID
Client Secret
Redirect URL

2. Request Authorization Code
Send your users to the authorization URL with these details:
Auth URL: https://app.salesmessage.com/auth/oauth
Access Token URL: https://api.salesmessage.com/pub/v2.2/oauth/token
Callback URL: the Redirect URI you set up in Step 1
Configure New Token section parameters:
client_id: Your client ID
client_secret: Your client secret
scope: (as required)
state: (recommended for CSRF protection)

Token Request section parameters:
client_id: Your client ID
client_secret: Your client secret

Response Example:
3. Refresh Access Token
When the access token expires, use the refresh token:
Endpoint:
Request Example:
Or:
Request Example:
Or:

API Call Examples
Now, you can search contact by number.
Endpoint:
You will get Contact object in return.