generated from mintlify/starter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b6f2358
commit 47b9b88
Showing
3 changed files
with
128 additions
and
1 deletion.
There are no files selected for viewing
53 changes: 53 additions & 0 deletions
53
api-reference/custom_endpoints/get_custom_endpoint_list.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
--- | ||
title: 'Get Custom Endpoint List' | ||
api: 'GET /v0/custom_endpoint/list' | ||
--- | ||
Returns a list of the available custom endpoints. | ||
|
||
#### Authorizations | ||
|
||
<ParamField header="Authorization" type="string" required="true"> | ||
Bearer authentication header of the form `Bearer <token>`, where `<token>` is your auth token. | ||
</ParamField> | ||
|
||
<RequestExample> | ||
|
||
```bash cURL | ||
curl --request GET \ | ||
--url 'https://api.unify.ai/v0/custom_endpoint/list' \ | ||
--header 'Authorization: Bearer <UNIFY_KEY>' | ||
``` | ||
|
||
```python Python | ||
import requests | ||
|
||
url = "https://api.unify.ai/v0/custom_endpoint/list" | ||
|
||
headers = {"Authorization": "Bearer <token>"} | ||
|
||
response = requests.request("GET", url, headers=headers) | ||
|
||
print(response.text) | ||
``` | ||
|
||
</RequestExample> | ||
<ResponseExample> | ||
|
||
```json 200 | ||
[ | ||
{ | ||
"name": "endpoint_1", | ||
"mdl_name": "llama_finetune", | ||
"url": "https://...", | ||
"key": "custom_key_1" | ||
}, | ||
{ | ||
"name": "endpoint_2", | ||
"mdl_name": "mixtral_finetune", | ||
"url": "https://...", | ||
"key": "custom_key_2" | ||
} | ||
] | ||
``` | ||
|
||
</ResponseExample> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters