cURL
curl --request POST \ --url https://api.getsafepay.com/raastwire/v1/aggregators/{raast-aggregator-id}/keys \ --header 'Content-Type: application/json' \ --header 'X-SFPY-AGGREGATOR-SECRET-KEY: <api-key>' \ --data ' { "is_active": true, "name": "Developer Access Key" } '
{ "api_version": "v1", "data": { "id": "ak_cf0f7821-32f5-4c66-8e86-0d5e2bb8b6b9", "token": "ak_tok_b758ad9a", "key_id": "key_live_a31b23f0", "aggregator_id": "agg_2288490a-2176-4de5-b373-0ffb6f8e2e6e", "is_active": true, "name": "Developer Access Key", "secret": "sk_live_GZc5k9mT0n", "created_at": "2025-05-19T11:19:12.000Z", "updated_at": "2025-05-19T11:19:12.000Z" } }
Create an access key to access Safepay’s Raast APIs
The unique identifier for the aggregator
"agg_2288490a-2176-4de5-b373-0ffb6f8e2e6e"
Request to create a new access key
Defines the attributes required to create a new access key
Indicates whether the newly created access key should be enabled immediately
true
Human-readable label that helps distinguish this access key
"Developer Access Key"
This response contains details of an access key
Standard response structure for successful operations
The current version of the API spec
"v1"
Newly created access key resource
Show child attributes
Was this page helpful?