Skip to Content
MinexonMinexon

provider.discord.login

Start Discord authorization to sign in to a linked account.

POST/api/v1/{locale}/account/providers/discord/login

API scope provider.discord.login

Request

Send Authorization: Bearer <key> with each request.

Guest session. Preserve the same cookie for stateful steps.

Path parameters

FieldTypeRequirementDescription
localetr or enRequiredRequest locale.

Request body

FieldTypeRequirementDescription
minexon_captcha_responsestringOptionalValid 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 '{}' \
  "${MINEXON_BASE_URL}/api/v1/en/account/providers/discord/login"

Response

HTTP 200 · application/json

FieldTypeRequirementDescription
nextstringRequiredNext location returned by the CMS or provider.
noticesstring[]ConditionalSuccess and state codes.
errorstringConditionalError code.
errorsstring[]ConditionalField or operation error codes.
{
  "next": "https://provider.example.com/authorize"
}

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
FieldTypeRequirementDescription
localestringRequiredResponse locale.
errorstring or nullConditionalAction error. Can be empty on success.
errorsarray or objectConditionalField or form validation errors.
noticestring or nullConditionalAction notice.
screenstringConditionalCurrent screen in the account flow.
registrationFieldsarrayConditionalConfigured registration fields.
registrationSchemastring or nullConditionalCurrent value to submit as registration_schema.
forcedRegistrationProviderstring or nullConditionalRequired registration provider.
forcedLoginProviderstring or nullConditionalRequired sign-in provider.
registrationProviderstring or nullConditionalProvider for the pending external registration.
registrationNeedsPasswordbooleanConditionalWhether the registration screen needs a password.
providerReadinessarray or objectConditionalProvider readiness for the current flow.
enabledProvidersarray or objectConditionalEnabled providers.
accountProvidersarray or objectConditionalProvider catalog and display labels.

Flow and error cases

Open next in a browser. The original session cookie must remain available when the provider returns to the CMS. The CMS manages the callback.

Shared error and authentication contract