Skip to content

Headers and authentication

API Request tools send a flat headers map with every call. Static headers (API version, content type) are set on the tool; dynamic values can come from parameters. Credentials add auth headers or query params automatically — secrets never appear in tool definitions visible to the model.

Add fixed key/value pairs in the tool editor:

HeaderWhen to use
Content-Type: application/jsonPOST/PUT/PATCH with JSON body
Accept: application/jsonWhen your API returns JSON
X-Api-Version: 2024-01Vendor-specific versioning

Mark a header value as a parameter when the model must supply it (rare — prefer path/query/body params for business data). Example: X-Tenant-Id from a multi-tenant context.

ApproachUse when
CredentialBearer token, API key, OAuth 2.0, HMAC — recommended
Static headerNon-secret metadata (version, locale)
Manual secret in headerNot supported — use the credentials vault

Chatevo injects credential values at execution time. Visitors and the LLM never see raw tokens.

Credential typeHow it is applied
BearerAuthorization: Bearer <token>
API key (header)Custom header, e.g. X-Api-Key: <key>
OAuth 2.0Authorization: Bearer <access_token> (refreshed automatically)
HMACSignature headers per your signing scheme

API keys can also be sent as query parameters when configured on the credential.

SettingValue
URLGET https://api.example.com/products
Static headersAccept: application/json
CredentialBearer token named Production API