Create Environment Client
POST/v1/environment-client
Create a client, requires clients:config:edit permission
Request
Query Parameters
Product ID specifier
Environment ID specifier
- application/json
Body
required
Possible values: non-empty
Client name
Policy ID to use for the client
Client description
Environment ID to use for the client
Product ID to use for the client
Responses
- 200
- 400
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
Client secret. Note the value of the secret is returned only when the secret is first generated or the secret is rotated.
Optionally scope this client to a single Environment.
policy
object
required
Possible values: [internal, default, custom]
An enumeration.
Default value: true
Enable Client Credential Authentication. This is recommended for services, automated processes, or third-parties.
Default value: true
Enable User Authentication (e.g. Steam, Xbox, PSN, Epic, Anon, etc). This is recommended for Game Clients and first-party websites.
Default value: true
Enable Refresh tokens for authentications using this policy. If true, the refresh_token_lifetime_days field is used to limit how long the tokens remain valid.
Possible values: >= 600
Default value: 600
Access token lifetime in seconds
Possible values: >= 7
Default value: 7
Refresh token lifetime in days. If empty, refresh tokens will not expire.
Client secret in raw format. Requires clients:secret:view permission.
{
"client_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"client_secret": "string",
"environment_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"policy": {
"policy_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"permissions": [
"string"
],
"description": "string",
"type": "internal",
"client_auth_enable": true,
"user_auth_enable": true,
"refresh_token_enable": true,
"access_token_lifetime_seconds": 600,
"refresh_token_lifetime_days": 7
},
"description": "string",
"client_secret_raw": "string"
}
Bad Request
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}