API profiles

An API profile is a REST server that agents call through the api command. The profile holds the server's base URL, the headers sent on every call, and the connection pool used.

Settings

FieldTypeDefaultDescription
namerequiredstringThe name this profile is referred to by, in agents and in other configuration.
docstringFree-text notes about this profile, for whoever maintains the configuration.
urlrequireddynamic stringThe base URL of this API server.
addPath"can" | "cannot" | "must""can"Whether command can add path to the base URL
headersobject of string → ValueModelHeaders sent with every call, including any authentication.
canAddHeadersbooleanfalseWhether more headers can be added by the command.
queryParamsobject of string → ValueModelQuery parameters sent with every call
canAddQueryParamsbooleanfalseWhether more query parameters can be added by the command.
connectionPoolNamestring"default"The connection pool used for calls to this server.

The URL and the header values are dynamic strings, so credentials can come from sys.secret instead of being stored in the profile. Headers set on the command are added to the profile's headers. Where both set the same header, the profile's value wins.