Admiral

Issuers

Register an issuer

POST
/v1/issuers
  • ALREADY_EXISTS when another issuer has that name.

Scope: serviceaccount:write

Authorization

bearerAuth
AuthorizationBearer <token>

An API key, or an access token minted from one. Pass it in the Authorization header: Bearer admp_...

In: header

Query Parameters

request_id?request_id

(OPTIONAL) A UUID the client generates once per create and sends again on every retry. A repeat within 24 hours returns the first result and creates nothing. The same id with a different request is refused with INVALID_ARGUMENT. Without one, every call creates. request_id.not_zero // request_id may not be the zero UUID

Formatuuid

Request Body

application/json

The issuer to create: name, iss and keys, and optionally display_name. Output-only fields and resource_name are ignored.

TypeScript Definitions

Use the request body type in TypeScript.

The issuer to create: name, iss and keys, and optionally display_name. Output-only fields and resource_name are ignored. issuer.name.required // an issuer needs a name

Response Body

application/json

curl -X POST "https://example.com/v1/issuers" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "keys": {}  }'
{  "issuer": {    "id": "string",    "name": "string",    "display_name": "string",    "resource_name": "string",    "iss": "string",    "keys": {      "jwks": "string"    },    "key_ids": [      "string"    ],    "keys_updated_at": "2023-01-15T01:30:15.01Z",    "pending_key_ids": [      "string"    ],    "pending_keys_at": "2023-01-15T01:30:15.01Z",    "etag": "string",    "created_by": {      "id": "string",      "display_name": "string",      "email": "string"    },    "created_at": "2023-01-15T01:30:15.01Z",    "updated_at": "2023-01-15T01:30:15.01Z"  }}