Create Developer Key
Authentication
Create Developer Key
Create a new developer key for the current developer user.
Maximum of 10 active developer keys per developer.
POST
Create Developer Key
Create a new developer key for API authentication with developer-level permissions. Each developer account can maintain up to 10 active keys for different applications, environments, or team members.Documentation Index
Fetch the complete documentation index at: https://devkit4ai.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Authentication
Requires valid JWT token withdeveloper role and an existing active developer key.
Headers
Bearer JWT access token obtained from login
Must be set to
developerExisting active developer key for authentication (format:
ak_ + 32 characters)Must be set to
application/jsonRequest Body
Optional descriptive name for the key (max 100 characters). Examples: “Production API”, “Staging Environment”, “CI/CD Pipeline”, “Team Member - John”
Response
Unique identifier (UUID) for the newly created developer key
Descriptive name for the key (empty string if not provided)
Full developer key - shown only once! Format:
ak_ + 32 URL-safe characters (alphanumeric, hyphen, underscore)First 8 characters of the key for identification (e.g.,
ak_abc12)Key status - always
true for newly created keysISO 8601 timestamp when the key was created
Example Request
Request Without Name
Example Response
Developer Key Format
Prefix:ak_ (API Key - provides developer-level access)
Structure: ak_ + 32 URL-safe characters (a-z, A-Z, 0-9, hyphen, underscore)
Example: ak_abc123XYZ-_789def456ghi012jkl345
Total Length: 35 characters (3-char prefix + 32-char random key)
Security Properties
- Cryptographically Random: Generated using secure random number generator
- SHA-256 Hashing: Keys are hashed with SHA-256 before database storage
- Prefix Identification: Only first 8 characters (
key_prefix) stored for UI display - One-Time Display: Full key returned only in creation response
- Revocable: Can be deactivated immediately via DELETE endpoint
Key Limits
Error When Limit Reached
Use Cases
Environment-Specific Keys
Create separate keys for each deployment environment:Team Member Keys
Create individual keys for team members:Key Rotation Workflow
Implement automated key rotation:Security Best Practices
Immediate Storage Required: Copy and securely store the full key immediately after creation. The API will never display the full key again.
Recommended Practices
- Secure Storage: Store keys in environment variables, secrets managers (AWS Secrets Manager, HashiCorp Vault), or password managers - never in code repositories
- Descriptive Naming: Use clear names indicating purpose and environment (e.g., “Production API v2”, “Staging - Mobile App”)
- Regular Rotation: Rotate keys every 90 days or when team members leave
- Principle of Least Privilege: Create separate keys for different applications/services rather than sharing one key
- Immediate Revocation: Revoke keys immediately if compromised or no longer needed
- Audit Trail: Document key creation, distribution, and revocation in your security logs
What NOT to Do
❌ Store keys in code repositories or version control❌ Share keys via insecure channels (email, chat, SMS)
❌ Use the same key across all environments
❌ Keep inactive or unused keys active
❌ Share keys between team members without tracking
Error Responses
Maximum Keys Reached (400)
Unauthorized (401)
Forbidden (403)
developer or developer key is invalid/revoked.
Invalid Request Body (422)
Related Pages
List Developer Keys
View all active developer keys
Revoke Developer Key
Deactivate keys immediately
Cloud Admin UI Guide
Create keys via web interface
Security Practices
Key management best practices
Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Body
application/json
Request payload for creating a new developer key
Maximum string length:
255
