What are API keys?
API keys authenticate requests to the TryPost REST API and MCP server. Every API call and AI assistant connection requires a valid key. 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 API Keys in the sidebar and click Create API Key.| Field | Required | Description |
|---|---|---|
| Name | Yes | A label to identify the key (e.g., Production, CI/CD, MCP, Cursor) |
| Expiration | No | Optional expiration date. After this date, the key stops working |
Key format
tp_ followed by 48 random characters (51 characters total). The tp_ prefix makes it easy to identify TryPost keys in your codebase and avoid committing them accidentally (add tp_* to your .gitignore patterns).
Where to use your API key
The same key works for both the REST API and MCP server:REST API
Pass the key as a Bearer token in theAuthorization header:
MCP Server
Use the key in your AI assistant’s MCP configuration: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
Use separate keys per use case
Create different keys for different purposes:
Production API, Cursor MCP, CI/CD Pipeline. If one is compromised, you only need to rotate one.Set expiration for temporary access
If you’re sharing a key with a contractor or external tool, set an expiration date.
Never commit keys to source control
Store keys in environment variables,
.env files (not committed), or secret managers. Never hardcode them.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 or AI assistant 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?
Yes. One key authenticates both REST API requests and MCP connections. They’re the same authentication mechanism.
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.
