Auth API reference

Auth API · Apps

get/v1/apps/{app_id}/auth-config/providers/{provider}Auth

Get the config for one (app, provider). Secrets are redacted — `private_key_present: true` is the only acknowledgement that a private key is on file.

Path parameters

app_id*string

Id of the app.

provider*string

The sign-in provider: `apple`, `google`, `github`, `microsoft`, or `oidc-<key>` for an OpenID Connect provider you added (the key is 1 to 32 lowercase letters, digits or hyphens that you choose, for example `oidc-okta`).

Response · 200

provider*string

The sign-in provider: `apple`, `google`, `github`, `microsoft`, or `oidc-<key>` for an OpenID Connect provider you added (the key is 1 to 32 lowercase letters, digits or hyphens that you choose, for example `oidc-okta`).

Example: "google"

enabled*boolean

Whether the provider is enabled.

config*object

Customer-safe view of the stored config. Public identifiers and metadata only — secrets (Apple private key, Google client secret, …) NEVER appear in the response. `private_key_present: true` is the only acknowledgement that a key is on file.

last_check_at*string · date-time

When the credential check last ran. Null until it has run for the saved credentials.

last_check_result*object

Result of the last credential check (run on every save and on `POST …/{provider}/check`). `credentials_valid`: the provider recognised the client id and secret (it only refused the dummy sign-in code we sent). `credentials_rejected`: the provider does not accept the client id or secret; sign-in with this provider is blocked until they are fixed. `inconclusive`: the provider could not be reached or gave an answer we cannot read; nothing is blocked.

last_check_error*string

The provider's OAuth error code from the last check, if any.

Example: "invalid_client"

created_at*string

When the provider was created (ISO 8601).

updated_at*string

When the provider was last changed (ISO 8601).

Example

Request

GET https://api.auth.productcraft.co/v1/apps/{app_id}/auth-config/providers/{provider}
Authorization: Bearer YOUR_TOKEN

Response

{
  "provider": "google",
  "enabled": false,
  "config": {},
  "last_check_at": "2026-01-01T00:00:00.000Z",
  "last_check_result": {},
  "last_check_error": "invalid_client",
  "created_at": "string",
  "updated_at": "string"
}