gtm_connections

Complete gtm workspace link

Finish the link with the code and state the consent redirect carried: one active linked row for the consented gtm workspace, its accounts attachable to sender profiles from then on. A re-consent by the same gtm user refreshes its sibling rows instead of doubling them. A spent or refused code is 409 (gtm_link_unconfirmed, gtm_link_refused): start the link again.

Contract:

  • MCP tool complete_gtm_connection_link, registry package mcp.id/gtm_connections, mount id.identity.
  • Operation action, response envelope action.
  • Flags: none.
post/api/gtm-connections/complete-link

Request

  • Base URL
    https://beta.getsales.io/id/v1
  • Auth
    HTTP bearer and API key in header Team-SID

Request body

codestring required

The authorization code from the consent redirect.

statestring required

The state start_gtm_connection_link answered.

Response

action success envelope.

successtrue required
operation'action' required
actionstring required

kebab-case verb; matches the route segment.

Changes

No recorded changes to this operation across all 1 revision of this API.