Customize
Take a connector back
Take a connector back from where one grant reaches, by the connector's id and the grant's id (grant).
DELETE
/workspaces/{workspace}/customize/connectors/{id}/grants/{grant}Returns the connector with its grants. Owners only. Recorded in the audit log.
- Authentication: Required. Send an access token as
Authorization: Bearer. - MCP tool:
customizewithactionrevoke_connector, and the same inputs - Scope: An access token needs
workspace:admin.
Path parameters
Section titled “Path parameters”| Name | Type | Required | Description |
|---|---|---|---|
workspace |
string | Yes | The workspace’s slug. |
id |
string | Yes | The connector’s id (con_…), from list_connectors. |
grant |
string | Yes | The grant’s id, from the connector’s grants. |
Example request
Section titled “Example request”curl -X DELETE https://api.g1t.sh/workspaces/flagon-io/customize/connectors/con_01kq9h4k6m8p0r2t4v6x8z0b2d/grants/cgr_01kq9k7n9q1s3u5w7y9a1c3e5g \ -H "Authorization: Bearer $G1T_TOKEN"Example response
Section titled “Example response”A successful request answers 200 with:
{ "id": "con_01kq9h4k6m8p0r2t4v6x8z0b2d", "name": "linear", "title": "Linear", "url": "https://mcp.linear.app/mcp", "category": "work", "about": "Issues, projects and cycles in Linear.", "auth": "oauth", "state": "connected", "problem": null, "from": { "kind": "directory", "id": "linear" }, "tools": [], "checked_at": "2026-10-11T14:31:05.772Z", "header_name": null, "signed_in_as": "chase@flagon.io", "signed_in_at": "2026-10-11T14:31:05.772Z", "grants": [ { "id": "cgr_01kq9h5l7n9q1s3u5w7y9a1c3e", "scope": "workspace", "target": null, "label": "Every agent", "granted_by": "syntaqx", "granted_at": "2026-10-11T14:32:10.004Z" } ], "added_by": "syntaqx", "added_at": "2026-10-11T14:30:12.618Z"}Errors
Section titled “Errors”A failed request answers with one of these statuses and a body like {"error": {"code": "not_found", "message": "Repository not found."}}. See errors.
| Status | Code | When |
|---|---|---|
| 401 | unauthenticated |
A token is required, or the one sent is not valid. |
| 403 | forbidden |
The token is valid but not allowed to do this, such as a member-only change or an agent token outside its repository. |
| 404 | not_found |
It does not exist, or you cannot see it. |
| 409 | conflict |
The request conflicts with the current state. |
| 422 | invalid |
The input is not valid. message says which field and why. |