Cyber MondayUp to 60% off MagicPost, for lifeView pricesEnds in01d23h58m

How to create an API key

A MagicPost API key connects n8n, Zapier, Make or your own code (the MagicPost REST API) to your MagicPost account. You create a key in the app: open the profile menu, select API & MCP, click Connect a tool, then pick the tool under Tools and code. API keys are included in the Creator, Agency, and Team plans and during the MagicPost free trial. The Growth plan does not include API keys.

AI assistants do not use a MagicPost API key. Claude, ChatGPT, Gemini, Perplexity, Grok, Mistral, Cursor, Claude Code and Codex connect to the MagicPost MCP server with its address and a MagicPost sign-in, from the same Connect a tool window. The steps for each assistant are in How to connect MagicPost to Claude, ChatGPT, Gemini and Perplexity.

Who can create a MagicPost API key

  • Creator, Agency, and Team. API keys and the MagicPost MCP server are part of these plans.

  • Free trial. API keys are open for as long as the MagicPost free trial lasts. A key stops working when the trial ends without a subscription to one of these plans.

  • Members of an organization. A member of a Agency or Team organization can create MagicPost API keys. There is one exception, in any organization: a Growth, Analytics or Engagement seat does not include API keys. The Creator seat includes them. The exception also applies to an administrator who holds one of these three seats: MagicPost shows that administrator no API & MCP tab, in their account or in the organization settings.

  • Growth. The Growth plan does not include API keys, and MagicPost does not show the API & MCP tab to a Growth subscriber.

A subscription to a former MagicPost plan follows its own rules: see The Analytics and Starter plans. To move to a plan that includes API keys, see how to upgrade your MagicPost plan.

How to create a MagicPost API key

  1. In MagicPost, open the profile menu and select API & MCP. You can also select Settings, then open the API & MCP tab. The direct link is app.magicpost.in/settings?tab=api-keys.

  2. Click Connect a tool. The Connect a tool window opens.

  3. On the left of the window, under Tools and code, choose n8n, Zapier, Make or Your code (REST API).

  4. Check the Key name field. For n8n, Zapier and Make, MagicPost fills it in with the name of the tool. For your code, type a name, for example "My reporting script". The name is required and is limited to 64 characters.

  5. Click Create key. The window then reads API key created and shows the key.

  6. Click Copy next to the key and store the key in a safe place.

  7. Click I've copied it, close.

A MagicPost API key starts with mp_. MagicPost shows the full key only once, in the API key created window. MagicPost stores a hash of the key, not the key, so nobody can display it again later. If you close the window without copying the key, create a new one.

An administrator of a MagicPost Team or Agency organization finds the same API & MCP tab in the organization settings: in the admin view, click Settings under Manage, then API & MCP. The tab lists that administrator's own MagicPost connections, the same ones as in the API & MCP tab of their account.

For the owner or an administrator of a MagicPost organization who has no seat and manages the organization, the organization settings are the only place with an API & MCP tab. The link app.magicpost.in/settings?tab=api-keys opens that tab for them. The tab of the organization settings is reserved to the administrators who can open these settings. The other administrators keep the API & MCP tab of their own account, a page called My account when they have no seat.

Where to paste a MagicPost API key in n8n, Zapier or Make

The MagicPost API key created window gives the header to send with every request, with your key already filled in: Authorization: Bearer, a space, then the key. The window also says where the header goes in the tool you picked:

  • n8n: add an HTTP Request node with this header.

  • Zapier: use the Webhooks by Zapier action with this header.

  • Make: use the HTTP module with this header.

  • Your code (REST API): add this header to every REST API request.

n8n, Zapier and Make have no built-in MagicPost connection. They call the MagicPost REST API through their HTTP module, with the API key in the header.

How to manage and revoke your MagicPost API keys

The Your connections list in the MagicPost API & MCP tab shows each active API key on its own row, with its name, the label API key and the first characters of the key, and the last time it was used, or Never used. The list never shows a full key. Connected AI assistants appear in the same list with the label AI assistant and a Disconnect button instead of Revoke.

To revoke a MagicPost API key, click Revoke on its row, then click Revoke in the Revoke this API key? window. The MagicPost API checks the key on every request, so a revoked key stops working right away. Revoking is permanent: a revoked key cannot be reactivated. Revoked keys stay listed under a collapsed line, for example "2 keys revoked", below the list.

A MagicPost API key does not expire. The key works until you revoke it or until the MagicPost account loses API access.

MagicPost limits the number of active API keys on one account. Only the keys you create count. Connected AI assistants do not count toward the limit. When you reach the limit, the Connect a tool window shows the maximum and Create key is disabled. Revoke a key you no longer use to create a new one.

What a MagicPost API key gives access to

A MagicPost API key gives access to your whole account, not to a part of it. With your key, a tool can read your drafts and your LinkedIn metrics, create and schedule posts, publish on your LinkedIn account, and use your Leads credits. Keep the key secret, and create one key per tool so that you can revoke one without stopping the others.

On a Agency or Team organization, a key created from an administrator's account also reaches the accounts that administrator manages. With the X-MagicPost-Member-Id header, a request acts on the account of one member exactly as if the administrator had switched to that account in the app: posts, scheduling, generation, Notebook, metrics, engagement, Leads and media library, with that member's plan, quotas and credits. On a member's account, the key never reaches billing, credit purchases and credit history, CRM connections, account security or the LinkedIn connection.

An agency does not need one MagicPost API key per client. A key created from the account of a member who is not an administrator is limited to that member's account.

How to use a MagicPost API key with the REST API

To call the MagicPost REST API, send the key in the Authorization header as a bearer token: the word Bearer, a space, then your key. The base address of the API is https://api.magicpost.in/api/v1/. The API reference is in the MagicPost developer documentation. It covers API keys, metrics, posts and scheduling.

A MagicPost API key alone does not upload a media file to a post through the REST API: only the MagicPost MCP server uploads a file. With a key, the MagicPost REST API can still attach a media from the media library to a draft, render HTML slides into an image or a PDF carousel, create a drop link where a person drops the file from a browser, and edit the title and the alt text of a media that is already attached.

The MagicPost API limits the number of requests per minute for each key. Refreshing LinkedIn posts and detecting leads have a stricter limit per minute. Publishing and scheduling a post have their own limit per minute. Post generation has its own limits per minute, per day and per week. Over a limit, the MagicPost API answers with the HTTP status 429, and the answer states the limit that applies.

The MagicPost developer documentation gives the values in two places. The errors and rate limits page gives the default limit per minute and the limit for refreshing posts. The generate_post entry of the tools page gives the post generation limits.

MagicPost also limits how many posts one LinkedIn profile can publish per 24 hours, and scheduled posts count too. Over that limit, the MagicPost API refuses to publish or schedule with the HTTP status 429, and the answer gives the limit and the next free slot. The limit depends on the account.

FAQ

Do I need a MagicPost API key to connect Claude or ChatGPT?

No. Claude, ChatGPT, Gemini, Perplexity, Grok, Mistral, Cursor, Claude Code and Codex connect to MagicPost with the address of the MagicPost MCP server and a MagicPost sign-in. In the Connect a tool window, pick the assistant under AI assistants: MagicPost shows the address and the steps, and creates no key for you to copy. A MagicPost API key is only for n8n, Zapier, Make and the REST API.

I lost my MagicPost API key. Can I see it again?

No. MagicPost shows an API key only once, when you create it, and stores only a hash of it. Revoke the lost key in the Your connections list of the API & MCP tab, then create a new key and replace it in your tool.

Why is there no API & MCP tab in my MagicPost settings?

MagicPost hides the API & MCP tab of your account in three cases. You are on the Growth plan. You hold a Growth, Analytics or Engagement seat in an organization: on Team, that means an Analytics or Engagement seat. Or you are the owner or an administrator of an organization, you have no seat and you can manage the organization: the tab is then not in My account but in Settings, under Manage in the admin view. API keys are included in the Creator, Agency, and Team plans. On a free account whose trial has ended, the tab is visible, but Connect a tool opens an upgrade window.

Do I need one MagicPost API key per client or per team member?

No. On a Agency or Team organization, one key created from an administrator's account reaches the accounts that administrator manages. If you prefer one key per member, create it from the settings of that member's account.

My MagicPost API key stopped working. Why?

There are two usual reasons. The key was revoked in the API & MCP tab. Or the account no longer has API access, for example after the free trial ended or after a change to a plan without API keys. In the second case, the MagicPost API answers that API and MCP access is not included in your plan.

Need help?

Reach out via the in-app chat, or book a 30-minute onboarding call: https://cal.com/magicpost/book-a-call

Which profile describes you best?

These two answers pre-fill your booking.