Create API Key
Authentication
Create API Key
Create a new API key with specific permissions and expiration
POST
Create API Key
Create a new API key for your account with granular permissions and optional expiration. This endpoint allows you to generate API keys programmatically for different use cases and team members.Documentation Index
Fetch the complete documentation index at: https://docs.buena.ai/llms.txt
Use this file to discover all available pages before exploring further.
Request
Your existing API key for authentication
Must be
application/jsonBody Parameters
Human-readable name for the API key (e.g., “Production Integration”,
“Development Key”)
Array of permissions to grant to this API key. See permission
reference.
Number of days until the API key expires (1-365 days). Set to 0 for no
expiration.
Response
Always
true for successful requestsThe created API key information
Success message with security reminder
Available Permissions
LinkedIn Permissions
LinkedIn Permissions
linkedin:schedule- Schedule LinkedIn actions (connection requests, messages) -linkedin:upload- Upload prospect lists for automation campaigns -linkedin:read- Read LinkedIn data and integration status
Lead Permissions
Lead Permissions
leads:read- Read lead data and search leads -leads:write- Create, update, and delete leads -leads:enrich- Enrich lead data with external sources
User Permissions
User Permissions
users:read- Read user data and team information -admin- Full administrative access to account
Common Permission Sets
Here are some common permission combinations for different use cases:Read-Only Access
LinkedIn Automation
Full Lead Management
Complete Integration
Use Cases & Examples
1. Development Environment Key
Create a key for development with read-only permissions:2. Production Integration Key
Create a key for production with full permissions:3. Team Member Key
Create a restricted key for a team member:4. Temporary Integration Key
Create a short-lived key for testing:Security Best Practices
Store Keys Securely
Store Keys Securely
Principle of Least Privilege
Principle of Least Privilege
Only grant the minimum permissions needed:
Regular Rotation
Regular Rotation
Rotate keys regularly, especially for production:
Monitor Usage
Monitor Usage
Track API key usage for security monitoring:
Error Responses
Invalid Permissions (400)
Insufficient Permissions (403)
Rate Limited (429)
Next Steps
After creating your API key:Test Your Key
Verify your new key works with a health check
List All Keys
View all your API keys and their permissions
Start Automating
Begin LinkedIn automation with your new key
Best Practices
Learn security best practices for API keys

