-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GenAI: Add Anthropic API Key Endpoints (#975)
* [PS-4661] docs: add documentation for public Anthropic API endpoints * [PS-4661] docs: add CURL examples * [PS-4661] fix: add missing descriptions * [PS-4661] fix: address feedback and tidy up
- Loading branch information
1 parent
d6e44c3
commit 25f2388
Showing
14 changed files
with
469 additions
and
27 deletions.
There are no files selected for viewing
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
10 changes: 10 additions & 0 deletions
10
specification/resources/gen-ai/examples/curl/genai_create_anthropic_api_key.yml
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,10 @@ | ||
lang: cURL | ||
source: |- | ||
curl -X POST \ | ||
-H "Content-Type: application/json" \ | ||
-H "Authorization: Bearer $PREVIEW_API_TOKEN" \ | ||
"https://api.digitalocean.com/v2/gen-ai/anthropic/keys" \ | ||
-d '{ | ||
"api_key": "sk-ant-12345678901234567890123456789012", | ||
"name": "test-key" | ||
}' |
6 changes: 6 additions & 0 deletions
6
specification/resources/gen-ai/examples/curl/genai_delete_anthropic_api_key.yml
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,6 @@ | ||
lang: cURL | ||
source: |- | ||
curl -X DELETE \ | ||
-H "Content-Type: application/json" \ | ||
-H "Authorization: Bearer $PREVIEW_API_TOKEN" \ | ||
"https://api.digitalocean.com/v2/gen-ai/anthropic/keys/11efb7d6-cdb5-6388-bf8f-4e013e2ddde4" |
Oops, something went wrong.