OAuth API key endpoints allow you to view and manage OAuth API keys for a given environment in your Redox organization. Learn more about OAuth API keys, which is our preferred authentication method.
You can retrieve, create, update, or delete OAuth API keys.
Create OAuth API key
Create a new OAuth API key to authenticate requests from your system.
The response contains the details of the new key.
cURL request example
Path Parameters
- environmentIdrequired, string
Identifies the specific environment that you're operating in or on behalf of.
Request Body Schema
- namerequired, string
Displays the human-readable name of the OAuth API key.
- jwksURLstring
Contains the JWKS URL for the OAuth API key.
- jwkSetobject
Contains a JSON Web Key Set (JWKS). See the JWK Set Format spec for more details.
- keysArray of object
Contains an array of JWK objects. Each JWK must have a
kid
andkty
, along with some other properties depending on the key type. See the JWK spec for more details.- kidrequired, string
Displays the JWK ID ("Key ID").
- ktyrequired, string
Identifies the JWK type ("Key type").
Contains the fields that can be provided when creating a new OAuth API key.
- metaobject
- versionstring
Lists the major and minor version number for the format of the returned payload. The payload format or shape may change between minor versions, like including additional or extended fields in later versions. We include the version data in each response so that you have the option to handle the signaled differences.
- payloadobject
Contains the payload with details about the requested OAuth API key(s).
- apikeyobject
Contains an instance of an OAuth API key.
- namestring
Displays the human-readable name of the OAuth API key.
- jwksURLstring
Contains the JWKS URL for the OAuth API key.
- jwkSetobject
Contains a JSON Web Key Set (JWKS). See the JWK Set Format spec for more details.
- keysArray of object
Contains an array of JWK objects. Each JWK must have a
kid
andkty
, along with some other properties depending on the key type. See the JWK spec for more details.- kidrequired, string
Displays the JWK ID ("Key ID").
- ktyrequired, string
Identifies the JWK type ("Key type").
- idstring
Displays the unique identifier (i.e., client ID) of the OAuth API key.
- environmentobject
Contains metadata about the environment within the associated Redox organization.
- idstring
Contains the unique identifier of the Redox environment.
Format: uuid - environmentFlagstring
Indicates whether the environment is used for development, staging, or production.
Possible Values:Production
,Staging
,Development