Skip to main content
This page takes you from nothing to a successful API response.
Give this to your AI agent and it will handle the API side while you sign up and log the LinkedIn account in:“Connect to gtm-api: add the MCP connector at https://mcp.gtm-api.com/mcp (OAuth) or call the REST API at app.gtm-api.com with my key. Then search my linkedin-accounts, tell me each account’s status, and once one reaches active, show what its smart limits allow today. Read-only for now: do not send or post anything.”
1

Create an account and connect LinkedIn

Sign up at app.gtm-api.com. Your workspace starts on Sandbox, the forever free plan: no card, no time limit. Connect a LinkedIn account you own: it opens in a dedicated anti-detect cloud browser with its own proxy, and the platform starts an initial sync of your inbox, connections and profile.You can make read calls right away. Outbound actions (connection requests, messages) stay blocked with an invalid_transition error until the initial sync finishes.
2

Mint an API key

In the app, create an API key. The full secret looks like gtm_live_ followed by 40 characters and is shown exactly once: store it now, because the API only ever returns the prefix and last 4 characters afterwards. If you lose it, rotate the key to get a new secret.Keys can also be minted over the API with POST /api/api-keys once you have a first key or a session token to call it with.
3

Make your first call

Search your connected LinkedIn accounts. The key goes in the Authorization header as a bearer token.
4

Read the response

Every success is the same envelope: success, the operation shape, and a meta block with a trace_id for support. Fields below are trimmed for the example.
The sid is the account’s stable identifier. Every entity in the platform has one, with a type-specific prefix (ln_ac_ for LinkedIn accounts, id_ak_ for API keys, wh_hk_ for webhooks).

Next steps

Authentication

Key rotation, permissions and the Team-SID header.

Envelopes and errors

The response contract and the 16 error codes.

Run a mass action

Preview, commit and monitor a bulk dispatch.

Connect the MCP server

The same tools, callable by an AI agent.