跳到内容
sigiro
Esc
↑↓导航↵打开⌘J预览

List ingest keys

Every ingest key of the workspace, newest first, revoked ones included. The secret is never returned.

GET/v1/ingest-keys
授权
AuthorizationBearer 令牌 (prefixed-api-key) · header必填
响应
200

The workspace's ingest keys

keysIngestKeyInfo[]必填
显示属性
IngestKeyInfo 数组
created_atstring必填

RFC 3339.

created_bystring必填

Subject of the OAuth token that created the key.

idstring必填

Public key id: the middle part of sigiro_<id>_<secret>.

last_used_atstring | null

RFC 3339; updated at most once a minute per key.

namestring必填
revoked_atstring | null

RFC 3339; set once the key is revoked.

401

Missing or invalid bearer token

403

Not a user's own OAuth access token

请求
curl -X GET '/v1/ingest-keys' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json'
响应
{
  "keys": [
    {
      "created_at": "string",
      "created_by": "string",
      "id": "string",
      "last_used_at": "string",
      "name": "string",
      "revoked_at": "string"
    }
  ]
}

这个页面有帮助吗?