Skip to content

Answers what a new session of a driver would run on, without creating anything: the tool's own login when it is signed in, otherwise the key or local model from Providers that the resolve rule picks, or the sentence that says what to add.

GET
/v1/m/sessions/provider-profiles/resolve
curl --request GET \
--url 'https://example.com/v1/m/sessions/provider-profiles/resolve?driver=claude' \
--header 'Authorization: Bearer <token>'

Answers what a new session of a driver would run on, without creating anything: the tool’s own login when it is signed in, otherwise the key or local model from Providers that the resolve rule picks, or the sentence that says what to add.

X-Olivares-Tenant
string format: uuid

Target tenant id; required when the principal can act in more than one tenant.

driver
required
string
Allowed values: claude codex grok opencode gemini-cli

The coding tool a new session would run. Answered with the reason (own_login or api_key) and, for a key, the provider record; a tool with nothing to run on is refused 409 with the sentence the resolve gives.

OK

Media type application/json
object
Example generated
{}

Bad request

Media type application/json
object
Example generated
{}

Unauthenticated

Media type application/json
object
Example generated
{}

Forbidden

Media type application/json
object
Example generated
{}

Not found

Media type application/json
object
Example generated
{}

Conflict / setup required

Media type application/json
object
Example generated
{}

Rate limited

Media type application/json
object
Example generated
{}