Authentication Methods
- Bearer Token
- API Key
Include your Bearer token in the Authorization header:
The Bearer token uses JWT (JSON Web Token) format as specified in the API security schemes.
API Servers
The PlanD API is available on multiple servers:Production
https://cloud-api.pland.app/v2Production environment for live applications
Sandbox
https://beta-api.pland.app/v2Testing environment for development
Local Development
http://localhost:3000/v2Local development server
Getting API Keys
You can manage your API keys through the API itself:1
List existing API keys
Use the
GET /apiKeys endpoint to view your current API keys2
Create a new API key
Use the
POST /apiKeys endpoint to generate a new API keyThe API key is returned in clear text only once during creation
3
Store securely
Store your API key in environment variables or secure configuration
User Authentication
For user login and authentication management:- User Login
- SMS Authentication
- Change Password
Authenticate users with username and password:
Testing Authentication
Verify your authentication is working correctly:Common Authentication Errors
401 Unauthorized
401 Unauthorized
403 Forbidden
403 Forbidden
Common causes:
- Valid authentication but insufficient permissions
- API key doesn’t have required access level
- Check your account permissions
- Verify the API key has the necessary scope
- Contact your administrator for access
Security Best Practices
Environment Variables
Store credentials in environment variables, never in code
Token Management
Regularly rotate your API keys and monitor their usageUse the API key management endpoints to track active keys

