For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
DiscordPlatform
DocumentationIntegrationsAPI referenceSDKsChangelog
DocumentationIntegrationsAPI referenceSDKsChangelog
  • API Reference
      • GETGet models summary
      • POSTFilter models summary
      • GETList models with filters
      • POSTFilter models
      • GETList public model catalog
      • GETList models
      • POSTCreate or update a custom model
      • GETRetrieve a model
      • PATCHUpdate a custom model
      • DELDelete a custom model
      • GETList custom providers
      • POSTCreate a custom provider
      • GETRetrieve a custom provider
      • PATCHUpdate a custom provider
      • DELDelete a custom provider
      • PUTReplace a custom model
      • PUTReplace a custom provider
  • Reference
    • Filters API Reference
LogoLogo
DiscordPlatform
API ReferenceModels

Retrieve a custom provider

GET
https://api.respan.ai/api/providers/:provider_id/
GET
/api/providers/:provider_id/
$curl https://api.respan.ai/api/providers/provider_id/ \
> -H "Authorization: Bearer sk_live_xxxxx" \
> -H "Content-Type: application/json"
1{
2 "id": "custom-provider-123",
3 "provider_id": "custom-provider-123",
4 "provider_name": "Custom AI Model Provider",
5 "extra_kwargs": {
6 "base_url": "https://api.customprovider.com/v1",
7 "timeout": 30,
8 "region": "us-west-2"
9 },
10 "created_at": "2024-04-10T12:00:00Z",
11 "updated_at": "2024-06-01T08:45:00Z"
12}
Retrieve a custom provider by its string provider ID. The provider API key is never returned.
Was this page helpful?
Previous

Update a custom provider

Next
Built with

Path parameters

provider_idstringRequired

Custom provider string ID returned as id and provider_id in provider responses.

Headers

AuthorizationstringRequired

Bearer token. Use Bearer YOUR_API_KEY for API key auth or Bearer <JWT> for dashboard auth.

Response

Provider details.
idstring

Provider string ID. Same value as provider_id.

provider_idstring
Unique provider identifier within your organization.
provider_namestring

Human-readable provider name.

extra_kwargsmap from strings to any

Provider configuration such as base_url and timeout values. Secret values are not returned here.

created_atdatetime or null
updated_atdatetime or null

Errors

401
Unauthorized Error
404
Not Found Error