connections_read
GET
/connections/{id}
const url = 'https://api.canopyhq.dev/connections/example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.canopyhq.dev/connections/example \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
The connection, by the name the tenant gave it.
Responses
Section titled “Responses”The connection, with the catalog captured when it was last linked and where it stands.
Media typeapplication/json
object
auth
catalog
required
endpoint
required
string
name
required
The tenant’s readable namespace for this connection’s tools.
string
result_limit
state
Where a connection stands: linked with its catalog, or waiting on the owner to authorize it. A linked connection whose token set was refused and could not be refreshed reads as needing authorization again.
string
timeout
string | null
Example
{ "auth": { "kind": "bearer" }, "state": "linked"}No console token, or one that did not verify.
The tenant owns no connection by that name.