
Diane Massé
Especialista de producto
How to create an API key
Your API key is what lets an AI assistant (or your own code) act on your MagicPost account. You need one before connecting Claude, Perplexity, or calling the API directly.
Create a key
In MagicPost, go to your account settings, tab API & MCP.
Click Create a key.
Name it after what you are connecting: "Claude Desktop", "Perplexity", "my script". The name is only for you, and you will be glad you were specific when you have four of them.
Copy the key straight away.
The key starts with `mp_`. It is shown exactly once, at creation, and never again. Close the dialog without copying it and it is gone. You will have to create another.
Treat it like a password
A key gives full access to your account: it can read your metrics, publish posts to your LinkedIn, and spend your credits.
Never paste it into a public repository, a shared document, or a screenshot.
Never share it with someone else. Give them their own.
If you suspect it leaked, revoke it immediately and create a new one.
Manage your keys
The same screen lists your keys, with their prefix and their creation date, never the key itself, since we do not keep it.
Up to 10 active keys per account. Enough for one per tool.
Revoke any key at any time. Revocation is permanent: a revoked key cannot be reactivated.
Use one key per tool. When you stop using a tool, revoke its key. That way a leak never means revoking everything.
Using it
For an AI assistant, follow How to connect MagicPost to Claude or How to connect MagicPost to Perplexity.
For the API, send it as a bearer token:
```
Authorization: Bearer mp_your_token
```
The base URL is `https://api.magicpost.in/api/v1/`, and the full reference is at https://dev.magicpost.in**.
Rate limits: 60 requests per minute per key. Two expensive endpoints are capped at 5 requests per minute instead: the LinkedIn post refresh and the lead detection. Over the limit, the API answers `429`.
FAQ
I lost my key.
It cannot be recovered. We never store it in clear text, which is exactly why it is safe. Revoke it and create a new one.
I revoked a key and it still works.
Revocation takes up to a minute to propagate. After that it is dead.
How do I know a key still works?
Your assistant will tell you soon enough: the tools stop responding. From code, call `GET /api/v1/auth/verify`.
Which plan do I need?
API and MCP access comes with Creator and above.
Need help?
Reach out via the in-app chat, or book a 30-minute onboarding call: https://cal.com/magicpost-team/contact-sales-team
Actualizado