You need to enable JavaScript to run this app.
文档中心
火山方舟

火山方舟

复制全文
下载 pdf
管理 API Key
获取临时 API Key
复制全文
下载 pdf
获取临时 API Key
POST https://ark.cn-beijing.volcengineapi.com/?Action=GetApiKey&Version=2024-01-01​
获取临时 API Key,用于在有效期内指定推理接入点、智能体等资源的调用的鉴权​
鉴权​
本接口支持鉴权方式如下,详情请参见 Base URL 及鉴权。​
  • Access Key 鉴权,请在 Access Key 管理 页面,获取 Access Key。本接口仅支持 Access Key 鉴权。​
​​
请求参数​
Body 参数​
DurationSeconds integer 必选 | 有效期​
​
ResourceIds string[] 必选 | 资源 ID 列表​
​
ResourceType string 必选 | 资源类型​
​
ProjectName string | 项目名称​
​
​
响应参数​
ApiKey string | 临时 API Key​
​
ExpiredTime integer | 过期时间​
​
​

Request

curl 'https://ark.cn-beijing.volcengineapi.com/?Action=GetApiKey&Version=2024-01-01' \
  -H 'Content-Type: application/json' \
  -H 'X-Date: <X-Date>' \
  -H 'X-Content-Sha256: <X-Content-Sha256>' \
  -H 'Authorization: HMAC-SHA256 Credential=<AK>/<X-Date>/cn-beijing/ark/request, SignedHeaders=content-type;host;x-content-sha256;x-date, Signature=<Signature>' \
  -d '{
  "DurationSeconds": 86400,
  "ResourceType": "endpoint",
  "ResourceIds": [
    "[\"ep-***\", \"ep-***\"]"
  ]
}
'

Response

{
  "ResponseMetadata": {
    "RequestId": "20250108152350029189016106C67393",
    "Action": "GetApiKey",
    "Version": "2024-01-01",
    "Service": "ark",
    "Region": "cn-beijing"
  },
  "Result": {
    "ExpiredTime": 0,
    "ApiKey": "***"
  }
}
最近更新时间:2026.09.04 20:18:47
这个页面对您有帮助吗?
有用
有用
无用
无用