Skip to content

Issue own API key​

POST
/v2/apiKey

Authorizations​

bearerAuth

OAuth access token or an API key on operations declaring x-api-key-scopes. Example header - Authorization Bearer sk_<64 lowercase hex characters>.

Type
HTTP (bearer)
or
basicAuth
Type
HTTP (basic)

Request Body​

application/json
JSON
{
  
"name": "Backup automation",
  
"scopes": [
  
  
"instances:read",
  
  
"instances:power"
  
],
  
"expiresAt": "2024-01-01T00:00:00Z"
}

Responses​

Key issued; the secret is shown only in this response.

application/json
JSON
{
  
"id": "string",
  
"userSub": "string",
  
"name": "string",
  
"prefix": "sk_01234567",
  
"scopes": [
  
  
"catalog:read"
  
],
  
"createdAt": "2024-01-01T00:00:00Z",
  
"expiresAt": "2024-01-01T00:00:00Z",
  
"revokedAt": "2024-01-01T00:00:00Z",
  
"lastUsedAt": "2024-01-01T00:00:00Z",
  
"createdBySub": "string",
  
"key": "string"
}

Playground​

Authorization
Body

Samples​

상호명: 스텔라아이티 주식회사
대표자: 홍윤석
주소: 서울특별시 금천구 디지털로9길 32, 비동 504-2호 (가산동, 갑을그레이트밸리)
사업자등록번호: 832-86-02374
전화번호: 1533-7848
이메일주소: contact@stella-it.com
통판업신고번호: 2024-서울금천-1834