keys

Create Workspace Key

Creates workspace key for the defined role with the defined name in the workspace.

post/auth/api/v1/key/create

Request

  • Base URL
    https://api.opengovernance.io
  • Auth
    API key in header Authorization

Request body

namestring

Name of the key

role'admin' | 'editor' | 'viewer'

Response

OK

activeboolean

Activity state of the key

created_atstring

Creation timestamp in UTC

idinteger

Unique identifier for the key

namestring

Name of the key

roleName'admin' | 'editor' | 'viewer'
tokenstring

Token of the key

Example response

{
  "active": true,
  "created_at": "2023-03-31T09:36:09.855Z",
  "id": 1,
  "name": "example"
}

Changes

No recorded changes to this operation across all 1 revision of this API.