Read a provider
GET
/providers/{id}
const url = 'https://api.canopyhq.dev/providers/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/providers/example \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
A provider’s name within its tenant.
string
The provider, by the name the tenant gave it.
Responses
Section titled “Responses”The provider, without its secret.
Media typeapplication/json
A provider as the console reads it: never its secret.
object
base_url
string | null
id
required
A provider’s name within its tenant.
string
kind
required
Which kind of provider, without where it is or what it dials with.
string
Example
{ "kind": "simulated"}No console token, or one that did not verify.
The tenant keeps no provider by that name.