Request basics
Headers
Authorization, API keys, and content type required by each API family.
Common headers
Prop
Type
Examples
-H "Authorization: Bearer YOUR_USER_API_KEY" \
-H "Content-Type: application/json"-H "x-api-key: YOUR_USER_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json"-H "x-goog-api-key: YOUR_USER_API_KEY" \
-H "Content-Type: application/json"Do not send these credentials
Last updated on