Skip to main content
PUT
/
v1
/
aggregators
/
{raast-aggregator-id}
/
keys
/
{access-key-id}
/
rotate
Rotate Access Key
curl --request PUT \
  --url https://api.getsafepay.com/raastwire/v1/aggregators/{raast-aggregator-id}/keys/{access-key-id}/rotate \
  --header 'X-SFPY-AGGREGATOR-SECRET-KEY: <api-key>'
{
  "api_version": "v1",
  "data": {
    "id": "ak_da8f1c10-346a-4be8-895a-b6187a9a9662",
    "token": "ak_tok_fede37a6",
    "key_id": "key_live_e111f1c10",
    "aggregator_id": "agg_2288490a-2176-4de5-b373-0ffb6f8e2e6e",
    "is_active": true,
    "name": "Primary Production Key",
    "secret": "sk_live_uMPN7cX2b1",
    "created_at": "2025-03-13T09:12:34.000Z",
    "updated_at": "2025-03-13T09:12:34.000Z"
  }
}

Authorizations

X-SFPY-AGGREGATOR-SECRET-KEY
string
header
required

Path Parameters

raast-aggregator-id
string
required

The unique identifier for the aggregator

Example:

"agg_2288490a-2176-4de5-b373-0ffb6f8e2e6e"

access-key-id
string
required

The unique identifier for the access key

Example:

"ak_da8f1c10-346a-4be8-895a-b6187a9a9662"

Response

200 - application/json

This response contains details of an access key

Standard response structure for successful operations

api_version
string

The current version of the API spec

Example:

"v1"

data
object

Access key credential used to authenticate aggregator API requests