What are API keys?
API keys (Personal Access Tokens) authenticate requests to the TryPost REST API. Keys are scoped to a single workspace — an API key can only access the workspace it was created in.Creating an API key
Go to workspace Settings → API Keys and click Create API Key.
After creation, the full key is shown once. Copy it immediately.
Where to use your API key
Pass the key as a Bearer token in theAuthorization header for REST requests:
Expiration
API keys can be created with or without an expiration date:- No expiration — The key remains active until you manually delete it
- With expiration — The key automatically becomes inactive after the set date. Requests return a
401error
Security best practices
1
Use separate keys per use case
Create different keys for different purposes:
Production API, CI/CD Pipeline. If one is compromised, you only need to rotate one.2
Set expiration for temporary access
If you’re sharing a key with a contractor or external tool, set an expiration date.
3
Never commit keys to source control
Store keys in environment variables,
.env files (not committed), or secret managers. Never hardcode them.4
Rotate keys periodically
Create a new key, update your integrations, verify the old key’s Last used timestamp shows no recent activity, then delete it.
Deleting an API key
You can delete an API key at any time from the dashboard or via the API. Deletion is immediate and irreversible — any application using the key will immediately start receiving401 errors.
Check the Last used column before deleting to make sure the key isn’t actively in use.
FAQ
How many API keys can I create?
How many API keys can I create?
There’s no limit. Create as many as you need.
Can I see the full key after creation?
Can I see the full key after creation?
No. The full key is only shown once. TryPost stores a secure hash, not the original key.
Does the same key work for API and MCP?
Does the same key work for API and MCP?
No. API keys authenticate the REST API only. MCP requires OAuth — see Build with AI.
What happens if I use an expired key?
What happens if I use an expired key?
The API returns a
401 Unauthorized error. Create a new key to restore access.Can I use an API key from one workspace in another?
Can I use an API key from one workspace in another?
No. Keys are scoped to the workspace where they were created. Create a separate key for each workspace.
Is there a rate limit?
Is there a rate limit?
Yes. API requests are throttled to prevent abuse. If you exceed the limit, you’ll receive a
429 status code.
