Update an API key
curl --request PATCH \
--url https://app.sahlfinancial.com/api/v1/api-keys/{key_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Back office (renamed)"
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'Back office (renamed)'})
};
fetch('https://app.sahlfinancial.com/api/v1/api-keys/{key_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.sahlfinancial.com/api/v1/api-keys/{key_id}"
payload = { "name": "Back office (renamed)" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"id": "9a2e6c4b-8d1f-4b57-9c3a-5e7f1d0b2a68",
"tenant_id": "0b6f5a3e-7c1d-4e0a-9d2f-3a1c5e8b7f10",
"name": "Back office (renamed)",
"prefix": "sk_test_Ab3d",
"scopes": "kyc:extract,kyc:verify",
"bound_identity": null,
"status": "active",
"last_used_at": null,
"expires_at": null,
"created_at": "2026-10-07T09:14:22Z"
}{
"detail": "Invalid or expired token"
}{
"detail": "Insufficient permissions"
}{
"detail": "API key not found"
}{
"detail": [
{
"type": "missing",
"loc": [
"body",
"bank_code"
],
"msg": "Field required",
"input": {}
}
]
}{
"code": "rate_limit_exceeded",
"message": "Too many requests. Please slow down."
}Update an API key
Who can call it: tenant_admin, tenant_api_manager or platform_admin.
Rename, change scopes, or bind it to service accounts. An empty bound_identity unbinds.
Auth: dashboard session (Authorization: Bearer <access token>). Not available with a partner API key.
Update an API key
curl --request PATCH \
--url https://app.sahlfinancial.com/api/v1/api-keys/{key_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Back office (renamed)"
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'Back office (renamed)'})
};
fetch('https://app.sahlfinancial.com/api/v1/api-keys/{key_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.sahlfinancial.com/api/v1/api-keys/{key_id}"
payload = { "name": "Back office (renamed)" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"id": "9a2e6c4b-8d1f-4b57-9c3a-5e7f1d0b2a68",
"tenant_id": "0b6f5a3e-7c1d-4e0a-9d2f-3a1c5e8b7f10",
"name": "Back office (renamed)",
"prefix": "sk_test_Ab3d",
"scopes": "kyc:extract,kyc:verify",
"bound_identity": null,
"status": "active",
"last_used_at": null,
"expires_at": null,
"created_at": "2026-10-07T09:14:22Z"
}{
"detail": "Invalid or expired token"
}{
"detail": "Insufficient permissions"
}{
"detail": "API key not found"
}{
"detail": [
{
"type": "missing",
"loc": [
"body",
"bank_code"
],
"msg": "Field required",
"input": {}
}
]
}{
"code": "rate_limit_exceeded",
"message": "Too many requests. Please slow down."
}Authorizations
The access token (JWT) of a signed-in console user, from POST /v1/auth/login. It lasts 30 minutes. It is not an API key: a partner API key is refused here. There is no cookie.