APIAPI keys
Rotate an API key
Issues a new API key with the same capabilities and name, then immediately revokes the old key. The new secret is returned once and cannot be retrieved again.
Authorization
ApiKey AuthorizationBearer <token>
Paste your BlendFi API key. Sandbox keys start with sk_test_. The Bearer prefix is added automatically.
In: header
Path Parameters
id*string
Format
uuidHeader Parameters
idempotency-key*string
Client-generated unique key to make the mutation safe to retry.
Length
1 <= lengthResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://api.sandbox.blendfi.com.br/v1/api-keys/497f6eca-6276-4993-bfeb-53cbbbba6f08/rotate" \ -H "idempotency-key: 0196c5d9-2e34-7c24-a47e-a0e1f89bb8a9"{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"key_prefix": "stringst",
"api_key": "sk_test_xK3jP9aB7nQ2mR8sT4vY6wZ1cD5eF0gH9iJlMpOuQ",
"capabilities": [
"users:create"
],
"name": "string",
"created_at": "2019-08-24T14:15:22Z"
}{
"code": "string",
"message": "string",
"request_id": "string",
"details": {
"property1": null,
"property2": null
}
}{
"code": "string",
"message": "string",
"request_id": "string",
"details": {
"property1": null,
"property2": null
}
}{
"code": "string",
"message": "string",
"request_id": "string",
"details": {
"property1": null,
"property2": null
}
}{
"code": "string",
"message": "string",
"request_id": "string",
"details": {
"property1": null,
"property2": null
}
}{
"code": "string",
"message": "string",
"request_id": "string",
"details": {
"property1": null,
"property2": null
}
}{
"code": "string",
"message": "string",
"request_id": "string",
"details": {
"property1": null,
"property2": null
}
}{
"code": "string",
"message": "string",
"request_id": "string",
"details": {
"property1": null,
"property2": null
}
}{
"code": "string",
"message": "string",
"request_id": "string",
"details": {
"property1": null,
"property2": null
}
}