account.register
Create a new player account.
POST
/api/v1/{locale}/account/registerAPI scope account.register
Request
Send Authorization: Bearer <key> with each request.
Guest session. Preserve the same cookie for stateful steps.
Path parameters
| Field | Type | Requirement | Description |
|---|---|---|---|
locale | tr or en | Required | Request locale. |
Request body
| Field | Type | Requirement | Description |
|---|---|---|---|
username | string | Required | Site username. |
email | string | Required | Account email address. |
registration_schema | string | Required | registrationSchema from the registration-form response. |
registration | object | Optional | Answers keyed by the registration field identifier. Complete all fields marked required. |
new_password | string | Required | New password, up to 72 bytes. |
confirm_password | string | Required | Repeat the new password. |
minexon_captcha_response | string | Optional | Valid widget response when CAPTCHA is enabled for this flow. |
Run samples from your application server. See Quickstart for variables and sessions.
curl --fail-with-body --request POST \
-H "Authorization: Bearer $MINEXON_API_KEY" \
-b "$MINEXON_COOKIE_JAR" -c "$MINEXON_COOKIE_JAR" \
-H 'Content-Type: application/json' \
--data '{
"username": "ExamplePlayer",
"email": "[email protected]",
"registration_schema": "<registrationSchema from GET>",
"new_password": "<new password>",
"confirm_password": "<new password>"
}' \
"${MINEXON_BASE_URL}/api/v1/en/account/register"Response
HTTP 200 · application/json
| Field | Type | Requirement | Description |
|---|---|---|---|
next | string | Required | Next location returned by the CMS or provider. |
notices | string[] | Conditional | Success and state codes. |
error | string | Conditional | Error code. |
errors | string[] | Conditional | Field or operation error codes. |
{
"next": "<next URL returned by CMS>"
}When the form is shown again, the response can contain data instead of next. Check the HTTP status and the error fields together.
Form response fields
| Field | Type | Requirement | Description |
|---|---|---|---|
locale | string | Required | Response locale. |
error | string or null | Conditional | Action error. Can be empty on success. |
errors | array or object | Conditional | Field or form validation errors. |
notice | string or null | Conditional | Action notice. |
screen | string | Conditional | Current screen in the account flow. |
registrationFields | array | Conditional | Configured registration fields. |
registrationSchema | string or null | Conditional | Current value to submit as registration_schema. |
forcedRegistrationProvider | string or null | Conditional | Required registration provider. |
forcedLoginProvider | string or null | Conditional | Required sign-in provider. |
registrationProvider | string or null | Conditional | Provider for the pending external registration. |
registrationNeedsPassword | boolean | Conditional | Whether the registration screen needs a password. |
providerReadiness | array or object | Conditional | Provider readiness for the current flow. |
enabledProviders | array or object | Conditional | Enabled providers. |
accountProviders | array or object | Conditional | Provider catalog and display labels. |
Flow and error cases
Open the registration form with the same session first. When local registration is disabled or a provider is required, follow the site’s configured flow.