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.
const url = 'https://example.com/v1/m/sessions/provider-profiles/resolve';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"account":"example","driver":"claude"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Header Parameters
Section titled “ Header Parameters ”Target tenant id; required when the principal can act in more than one tenant.
Request Body required
Section titled “ Request Body required ”object
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.
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.
Responses
Section titled “ Responses ”OK
object
Example generated
{}Bad request
object
Example generated
{}Unauthenticated
object
Example generated
{}Forbidden
object
Example generated
{}Not found
object
Example generated
{}Conflict / setup required
object
Example generated
{}Rate limited
object
Example generated
{}