Creates a provider account: the server builds its home on this node in two phases and registers the account that owns it, under the given name or a generated one.
const url = 'https://example.com/v1/m/sessions/provider-accounts';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"driver":"example","idempotency_key":"example","name":"example"}'};
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-accounts \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "driver": "example", "idempotency_key": "example", "name": "example" }'Creates a provider account: the server builds its home on this node in two phases and registers the account that owns it, under the given name or a generated 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
Provider driver key, lower-cased ([a-z0-9][a-z0-9._-]*). The account’s home is built for this driver on the node that serves this execution environment.
The account’s name: lowercase ASCII, a letter first, then letters, digits or ‘-’, at most 32 characters. It is unique in the execution environment across every driver, archived accounts included, and a taken name is refused rather than replaced by another. Empty or null asks the server to generate one: the bare driver name first, then -b, -c and so on.
Example generated
{ "driver": "example", "idempotency_key": "example", "name": "example"}Responses
Section titled “ Responses ”The provider account, and the home the engine built for it
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
{}Invalid account name, retry key or execution environment
object
Example generated
{}Rate limited
object
Example generated
{}Account home service unavailable or outcome unresolved; retry the same idempotency key
object
Example generated
{}