docs.zenspace.io
  1. Authentication
docs.zenspace.io
  • 🧭 Introduction
  • 🧱 System Components
  • 🧰 Tech Stack
  • 🏗️ System Architecture
  • 🌐 Deployment Architecture
  • 🗄️ Database Design Documentation
  • API Endpoints
    • RaspberryPi
      • Heartbeat API
      • Retrieve all active sensors and device permissions
      • Control a device (e.g., turn on/off, adjust intensity)
      • Enable or disable a device
      • Register a meeting space ID and retrieve network details
    • Meeting Space
      • Schedule meeting space state
      • Get meeting spaces by customer
      • Get meeting space state by ID
      • Get meeting space state by device ID
      • Disable meeting space state
      • Send meeting space state by meeting space ID
      • Store meeting space availability
      • Create Google Calendar
    • Device Management
      • Create device
      • Create device sensors
      • Create or update admin unlock codes
      • Upload meeting space screenshot
    • Authentication
      • Create authorization token
        POST
    • Messaging
      • Send message to Android device
    • Booking
      • Send meeting space state by booking ID
      • Create or update booking
    • Iftt
      • Create a new event with conditions and actions
  1. Authentication

Create authorization token

POST
/admin/create_token
Last modified:2025-05-29 13:03:16
Create Authorization token for future API calls

Request

Body Params application/json

Examples

Responses

🟢200OK
application/json
Token created successfully
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/admin/create_token' \
--header 'Content-Type: application/json' \
--data-raw '{
    "email": "test@gmail.com",
    "password": "password@123#"
}'
Response Response Example
{
    "user_id": "fc5be18b-9893-4373-bb34-6ca3ae759944",
    "email": "amitiscandid@gmail.com",
    "access_token": "eyJhbGciOiJIUzI1NiIsImtpZCI6Ikg3NnlMRytrK0ZRa3MyQXgiLCJ0eXAiOiJKV1QifQ..."
}
Modified at 2025-05-29 13:03:16
Previous
Upload meeting space screenshot
Next
Send message to Android device
Built with