LogoLogo
ALO.ai
Developer Documentation
Developer Documentation
  • Developer Documentation
  • Developer Account
    • API Key
  • SDKs
    • Authentication
    • Chat
      • Configuration
      • Send Messages
        • Upload Files
      • Message History
      • Message Actions
      • Message Counts
      • Translation
      • Typing Indicators
      • API Reference
        • Event
        • Message
    • Presence
      • Configuration
      • Basic Usage
      • Methods
    • Audio
      • Prerequisites
      • Instantiating Audio Service
      • Connect to a Channel
      • Disconnecting Audio Service
      • Push To Talk (PTT)
      • Full Duplex
      • Mute and Unmute Audio
      • Input/Output Device Selection
        • Microphone Selection
        • Speaker Selection
      • Channel Participants
      • Text To Speech Audio (TTS)
      • Automatic Reconnects
      • Handling Events
      • Classes
        • AloAudio
        • AudioUser
        • AudioChannel
        • Participant
    • Video
      • Prerequisites
      • Instantiating Video Service
      • Connect to a Channel
      • Disconnecting Video Service
      • Input Device Selection
        • Microphone Selection
        • Camera Selection
      • Publishing Streams
      • Modifying Published Streams
      • Channel Participants
      • Rendering Streams
        • Local Stream
        • Remote Streams
      • Muting/Unmuting Remote Streams
      • Recording Video (coming soon)
      • Automatic Reconnects
      • Handling Events
      • Classes
        • AloVideo
        • Participant
        • VideoChannel
        • VideoUser
  • ALO APPS
    • Overview
    • Creating Apps
    • Webhooks
      • Verifying Requests from ALO
    • Custom Action Forms
    • Using the ALO Platform API
  • ALO Platform API
    • Overview
    • Authentication
    • API
      • Actions and Periods
      • Channels
      • Channel Messages
      • Channel Users
      • Direct Message Channels
      • Direct Message Channel Chat Messages
      • Direct Message Channel Users
      • Groups
      • Periods
      • Types
      • Users
      • Video Management System
  • Misc
    • Supported Language Codes
Powered by GitBook
LogoLogo

ALO.ai

  • ALO.ai

© Copyright 2025 ALO.ai, Inc. • All Rights Reserved

On this page
  • Generating User Authentication Tokens
  • Authentication Payload
  • User Schema
  • Example
  1. SDKs

Authentication

Generate user authentication tokens securely for ALO SDK access using your Developer API Key and user credentials.

PreviousAPI KeyNextChat

Last updated 9 months ago

Generating User Authentication Tokens

When using ALO SDKs you will need to provide an authentication token for each of your ALO users that will need access to the ALO Cloud Platform.

You should generate user authentication tokens in a server side function so that you do not expose your ALO Developer API Key in client side code.

In order to generate a token for a given user you will need the following:

  • ALO Cloud user id for the user that needs access. See the for information on obtaining user information.

To get a token you must perform a POST a request to the ALO Authorization Service

POST https://auth.alo.ai/v1/auth
Headers:
- Authorization: Bearer <DEVELOPER API KEY>
Payload:
- ttl
- user

Authentication Payload

Payload Key

Type

Required

Default

Description

ttl

integer

No

1440

Time in minutes for which granted access is valid. Min is 1, Max is 525600.

user

object

Yes

A collection of custom private claims used to share information with ALO

User Schema

Key

Type

Required

Description

id

string

Yes

Unique ALO Cloud ID for the user to grant access to

Example

POST https://auth.alo.ai/v1/auth
Headers:
- Authorization: Bearer jjPP43dkEJHzzzlIYSGVt8HE5xOAtz1
Payload:
- user: { id: "A744d43X-3316-56f7-a6a3-99ecbbd44agg" }
- ttl: 60

Response:

{ token: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwSJRMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c" }

Developer Account API Key
User API