Endpoints related to user authentication and token management
ContextSMS Teams Platform API (1.0.0)
- Unified Teams Integration - Connect Teams with external messaging systems
- Multi-tenant Support - Manage multiple customer organizations efficiently
- Advanced Routing - Intelligent message routing and delivery
- Real-time Messaging - Instant message delivery and notifications
Download OpenAPI description
Overview
URL
Sabrhub API Support Team
License
Languages
Servers
Mock server
https://context-docs.sabrhub.com/_mock/specs/contextsms-teams.external
Teams Backend Server (production)
https://teams-backend.sabrhub.com
Authentication Server (production)
https://usermanagement.sabrhub.com/v1
- Mock serverhttps://context-docs.sabrhub.com/_mock/specs/contextsms-teams.external/teams-auth/login
- Teams Backend Server (production)https://teams-backend.sabrhub.com/teams-auth/login
- Authentication Server (production)https://usermanagement.sabrhub.com/v1/teams-auth/login
- cURL
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -X POST "https://usermanagement.sabrhub.com/v1/teams-auth/login" \
-H "Content-Type: application/json" \
-d '{"username": "test@email.com", "password": "securePassword123"}'Response
application/json
{ "username": "test@email.com", "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...", "refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...", "expirationTimeInUTC": "2024-02-29T15:09:14.242875589", "roles": [ "CSP_BUSINESS" ], "tenantId": "Sabrhub", "services": [ "Teams" ] }
Bodyapplication/jsonrequired
Array of user roles (must have at least one role)
Example: ["MAPPED_USER"]
Array of services the user has access to (optional, defaults to Teams)
Example: ["Teams"]
Flag indicating if user should be migrated (default: false)
Default false
Example: false
- Mock serverhttps://context-docs.sabrhub.com/_mock/specs/contextsms-teams.external/teams-auth/createuser
- Teams Backend Server (production)https://teams-backend.sabrhub.com/teams-auth/createuser
- Authentication Server (production)https://usermanagement.sabrhub.com/v1/teams-auth/createuser
- cURL
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -X POST "https://usermanagement.sabrhub.com/v1/teams-auth/createuser" \
-H "Authorization: Bearer <TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"email": "newuser@example.com",
"password": "SecurePassword123!",
"roles": ["MAPPED_USER"],
"services": ["Teams"],
"notifyUser": true
}'