Azeer API
  1. App
Azeer API
  • API Authentication
  • APIs
    • Agents
      • Create Agent
      • Update Agent
      • Get Agent Details
    • Contacts
      • Create Contact
      • Create Bulk Contacts
    • Messages
      • Send Message
      • Delete Message
      • Delete Bulk Messages
    • Webhooks
      • Webhooks
      • List all webhooks
      • Get Webhook Details
      • Create Webhook
      • Delete Webhook
    • App
      • Create User Session
        POST
  1. App

Create User Session

POST
https://api.mottasl.ai/v1/app/user.new.session
appsintegration
Last modified:2024-12-20 18:41:10
Create a platform session for a specific user

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Query Params
host_id
string 
optional
Get it from Azeer Platform support team.
Example:
xyz
Body Params application/json
business_id
string 
required
platform_type
string 
required
platform_id
string 
required
role
string 
required
profile_name
string 
required
display_name
string 
required
profile_image_url
string 
required
Example
{
  "business_id": "550e8400-e29b-41d4-a716-446655440000",
  "platform_type": "avocado",
  "platform_id": "1234567890",
  "role": "admin",
  "profile_name": "johndoe",
  "display_name": "John Doe",
  "profile_image_url": "https://example.com/profile.jpg"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.mottasl.ai/v1/app/user.new.session?host_id=xyz' \
--header 'Content-Type: application/json' \
--data-raw '{
  "business_id": "550e8400-e29b-41d4-a716-446655440000",
  "platform_type": "avocado",
  "platform_id": "1234567890",
  "role": "admin",
  "profile_name": "johndoe",
  "display_name": "John Doe",
  "profile_image_url": "https://example.com/profile.jpg"
}'

Responses

🟢200Success
application/json
Body
headers
object 
required
Authorization
string 
required
x-hasura-business-id
string 
required
x-hasura-user-id
string 
required
x-host-id
string 
required
user_details
object 
required
id
string 
required
name
string 
required
display_name
string 
required
email
string 
required
image
string 
required
language
string 
required
role
string 
required
channels
array[string]
required
billing_source
string 
required
success
boolean 
required
Example
{
    "headers": {
        "Authorization": "Bearer example-jwt-token",
        "x-hasura-business-id": "550e8400-e29b-41d4-a716-446655440000",
        "x-hasura-user-id": "12345",
        "x-host-id": "67890"
    },
    "user_details": {
        "id": "12345",
        "name": "John Doe",
        "display_name": "John",
        "email": "johndoe@example.com",
        "image": "https://example.com/profile.jpg",
        "language": "en",
        "role": "admin"
    },
    "channels": [
        "WhatsApp"
    ],
    "billing_source": "Stripe",
    "success": true
}
🔴500InternelError
🟠400BadRequest
Modified at 2024-12-20 18:41:10
Previous
Delete Webhook
Built with