Customize
Refresh a connector's tools
Ask a connector's server for its tools again now, by id, and return the connector with its tools, checked_at and state as they are now.
POST
/workspaces/{workspace}/customize/connectors/{id}/refreshOwners only.
Asks the server for its tools now. A server that cannot be reached, or refuses the sign-in, leaves the connector in state problem with problem saying why; the tools it listed last are kept.
- Authentication: Required. Send an access token as
Authorization: Bearer. - MCP tool:
customizewithactionrefresh_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. |
Example request
Section titled “Example request”curl -X POST https://api.g1t.sh/workspaces/flagon-io/customize/connectors/con_01kq9h4k6m8p0r2t4v6x8z0b2d/refresh \ -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": [ { "name": "list_issues", "description": "List issues in a team or project.", "input_schema": { "type": "object", "properties": { "team": { "type": "string" } } } }, { "name": "create_issue", "description": "Create an issue.", "input_schema": { "type": "object", "properties": { "title": { "type": "string" } }, "required": [ "title" ] } } ], "checked_at": "2026-10-11T15:10:44.207Z", "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. |