Authentication
Authentication Flow
Understanding the Two-Step Authentication Process
Step 1: User and Workspace Creation
Step 2: API Key Generation
Step 3: Authentication Token Creation
Final Notes
Regional Endpoints and Dedicated Clusters
Generating API Keys
Authentication Token Generation
Given an organization API key, issue an authorization token for the specified user. The token should then be attached to the Authorization header in subsequent Amigo API calls.
This is an alternative authorization method for users who cannot use the Amigo frontend to login and authenticate.
The value of the API key.
The ID of the API key.
The ID of the user to sign in as.
The Mongo cluster name to perform this request in. This is usually not needed unless the organization does not exist yet in the Amigo organization infra config database.
[]Succeeded.
The ID token that should be attached to the Authorization header for future API calls.
The time at which the token expires.
API key not found, is incorrect, or the requested user is not found.
Specified organization is not found.
Invalid request path parameter failed validation.
The user has exceeded the rate limit of 5 requests per minute for this endpoint.
The service is going through temporary maintenance.
Testing with Postman or Scalar
Quick Start Flow
CLI Authentication (Agent Forge)
Method 1: API Key Authentication
Method 2: Firebase Authentication (Recommended)
Security Best Practices
API Key Rotation
Additional Security Measures
Last updated
Was this helpful?

