Skip to content

Answers which provider profile a new session of a driver uses on this node: the tool's own login when it is signed in, otherwise a key or local model from Providers; it reuses a matching profile or creates one.

POST
/v1/m/sessions/provider-profiles/resolve
curl --request POST \
--url https://example.com/v1/m/sessions/provider-profiles/resolve \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "account": "example", "driver": "claude" }'

Answers which provider profile a new session of a driver uses on this node: the tool’s own login when it is signed in, otherwise a key or local model from Providers; it reuses a matching profile or creates one.

X-Olivares-Tenant
string format: uuid

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

Media type application/json
object
account

Optional. An account name (as shown by the provider-accounts list) or a profile reference of the same tool: the answer is that account’s profile, nothing is created and the engine’s own choice does not run. Unknown: 404. Another tool’s, foreign, disabled or retired: 409. Omit it and the rule above answers, exactly as before.

string
driver
required

The coding tool the new session runs. The answer is a profile this node can launch it with, reused or created; a tool with nothing to run on is refused with the step that fixes it.

string
Allowed values: claude codex grok opencode gemini-cli

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
{}