Endpoints for user login and token management to securely access the API.
Core APIs
/- Authenticate user and return access and refresh tokens
Exchange refresh token and return a new access token
Authenticate user and ret...
ContextSMS Webex Bot API (1.0.0)
- Enterprise Authentication - Secure Bearer token authentication
- Enterprise Management - Create and manage customer organizations
- Phone Number Mapping - Link phone numbers to Webex identities
- Real-time Webhooks - Instant message event notifications
- Multi-environment - Separate development and production environments
- Authenticate → Get your Bearer token via login
- Create Enterprise → Set up customer organization with CSP ID
- Add Mapping → Link phone number to Webex identity
- Handle Events → Process incoming webhook notifications
Download OpenAPI description
Overview
URL
Sabrhub API Support Team
License
Languages
Servers
Mock server
https://context-docs.sabrhub.com/_mock/specs/contextsms-webex.external
Production Environment (live)
https://context-webex.sabrhub.com/api/v1
Authentication Server (production)
https://usermanagement.sabrhub.com/v1
- Mock serverhttps://context-docs.sabrhub.com/_mock/specs/contextsms-webex.external/auth/login
- User Management service - always used for authentication regardless of environment.https://context-docs.sabrhub.com/https://usermanagement.sabrhub.com/v1/auth/login
- cURL
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -X POST "https://usermanagement.sabrhub.com/v1/auth/login" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"username": "test@email.com",
"password": "Ni*nsl$k3n("
}'Response
application/json
{ "username": "test@email.com", "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...", "refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...", "expirationTimeInUTC": "2024-02-29T15:09:14.242875589", "roles": [ "string" ], "tenantId": "tenant123", "services": [ "string" ] }
- Mock serverhttps://context-docs.sabrhub.com/_mock/specs/contextsms-webex.external/auth/getaccesstoken
- User Management service - always used for authentication regardless of environment.https://context-docs.sabrhub.com/https://usermanagement.sabrhub.com/v1/auth/getaccesstoken
- cURL
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -X POST "https://usermanagement.sabrhub.com/v1/auth/getaccesstoken" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"username": "test@email.com",
"refreshToken": "<REFRESH_TOKEN>"
}'Response
application/json
{ "username": "test@email.com", "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...", "refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...", "expirationTimeInUTC": "2024-02-29T15:09:14.242875589", "roles": [ "string" ], "tenantId": "tenant123", "services": [ "string" ] }