API keys allow you to access OnetSolutions services programmatically. Use them to automate tasks, integrate with CI/CD pipelines, or build custom applications.Documentation Index
Fetch the complete documentation index at: https://help.onetsolutions.net/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
- An OnetSolutions account with an organization
Creating an API Key
Configure the key
- Name: Give your key a descriptive name (e.g., “CI/CD Pipeline”, “Monitoring Script”)
- Expiration: Optionally set an expiration date
- Scopes: Select the permissions for this key
Using API Keys
Include your API key in theAuthorization header of your requests:
Managing API Keys
Viewing Keys
The API Keys page shows all your active keys with:- Key name
- Creation date
- Last used date
- Expiration date (if set)
Revoking Keys
To revoke an API key:- Go to Settings > API Keys
- Find the key you want to revoke
- Click the delete/revoke button
- Confirm the action
Project Tokens
For project-specific access, you can create tokens at Settings > Project > Tokens. These tokens are scoped to a specific project and have limited permissions.Best Practices
Use descriptive names
Use descriptive names
Name your keys based on their purpose (e.g., “Production Deploy”, “Staging CI”) to easily identify them later.
Set expiration dates
Set expiration dates
For temporary needs, set an expiration date to automatically revoke the key.
Use minimum required permissions
Use minimum required permissions
Only grant the scopes your application needs, following the principle of least privilege.
Rotate keys regularly
Rotate keys regularly
Create new keys and revoke old ones periodically to limit potential exposure.
Use environment variables
Use environment variables
Never hardcode API keys in your application code. Use environment variables instead.
API Documentation
API Reference
Explore the full API documentation to see available endpoints and parameters.

