Skip to main content
PUT
Set auth config for an environment

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

user-agent
string | null

Path Parameters

org_id
string
required
env_id
string
required

Body

application/json
provider
enum<string>
required
Available options:
dynamic,
privy
dynamic
DynamicAuthCredentials · object | null
privy
PrivyAuthCredentials · object | null

Privy authentication credentials.

Provide app_id always. Supply either verification_key (recommended for production — local JWT verification against a public key) or api_key (Privy app secret — enables REST-backed user data fallback), or neither (verify against Privy's public JWKS endpoint).

Example:

Response

Successful Response

auth
AuthConfigData · object
required