Skip to main content

Create key

POST https://www.digicert.com/services/v2/key/user/{{user_id}}

Use this endpoint to create a new API key for a specific user.

Danger

The API key is shown only this one time in the creation response. It will never be shown again and there is no way to retrieve it if lost.

Example requests and responses

Request parameters

Name

Req/Opt

Type

Description

name

required

string

Name of the key.

restricted_to_role_id

optional

int

To limit API key permissions, specify the API access role ID.

Allowed values: 0, 100, 101, 102, 103. For more information, see Glossary – API key roles.

Response parameters

Name

Type

Description

id

int

Unique identifier for the created key.

api_key

string

Randomly generated API key.