Revoke a LinkedIn source
Revoke a wrong or outdated source. Drafts relying on it go back for review, and approvals relying on it that have not gone out are withdrawn and must be given again. Calling it twice changes nothing more.
POST
https://app.trygtm.com/api/v1/linkedin/sources/{source_id}/revoke- Scope
write- MCP tool
- revoke_linkedin_source
Path parameters
source_idstringrequired- The source's id, from list_linkedin_sources.
Headers
Idempotency-Keystringoptional- A key unique to this write, up to 255 characters. A retry carrying the same key returns the first response instead of running again. Kept for 24 hours.
Body
reasonstringrequired- Why it is revoked, for the history.
Request
curl -X POST https://app.trygtm.com/api/v1/linkedin/sources/8f2a91c4-6d1e-4c0a-9a57-2f3b1c7e9d10/revoke \
-H "Authorization: Bearer $TRYGTM_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"reason": "manual"
}'Response
{
"data": {
"source_id": "4a5b6c7d-8e9f-4a0b-9c1d-2e3f4a5b6c7d",
"withdrawn": 1
}
}