Skip to content

POST Generate API key with credentials

Authenticate with username/password and generate a new API key with specified scopes and expiration for programmatic access.

POSThttps://api.rooom.com/generate-api-key
Try it out

Body required

multipart/form-data
NameTypeDescription
usernamerequired
Example: user@example.com
stringUsername or email address
passwordrequired
Example: SecurePass123!
stringUser password
namerequired
Example: Mobile App Integration
stringDescriptive name for the API key
expiry
Example: 2024-12-31
stringAPI key expiration date (YYYY-MM-DD)
scopesrequired
Example: [ "user:read", "space:read", "viewer:read" ]
arrayList of permission scopes for the API key

Responses

200Successfully generated API key
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) scopes List of permission scopes for the API key