POST Generate API key with credentials
POST /generate-api-key: Generate API key with credentials. Authenticate with username/password and generate a new API key with specified scopes and expiration
Are you an LLM? You can read better optimized documentation at /docs/api/endpoints/authentication/post-generate-api-key.md for this page in Markdown format
POST
Try it out https://api.rooom.com/generate-api-keyBody required
multipart/form-data| Name | Type | Description |
|---|---|---|
usernamerequiredExample: user@example.com | string | Username or email address |
passwordrequiredExample: SecurePass123! | string | User password |
namerequiredExample: Mobile App Integration | string | Descriptive name for the API key |
expiryExample: 2030-12-31 | string | API key expiration date (YYYY-MM-DD), must be in the future |
scopesrequiredExample: [
"user:read",
"space:read",
"viewer:read"
] | array | List of permission scopes for the API key, at least one valid scope is required |
Responses
200Successfully generated API key
400Invalid request - at least one valid scope and a future expiry date are required
401Unauthorized
500Server error
POST /generate-api-key Generate API key with credentials Authenticate with username/password and generate a new API key with specified scopes and expiration for programmatic access. username Username or email address password User password name Descriptive name for the API key expiry API key expiration date (YYYY-MM-DD), must be in the future scopes List of permission scopes for the API key, at least one valid scope is required