cURL
curl --request POST \ --url https://pullstory.com/api/v1/api-keys \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "CI pipeline" } '
{ "id": "key_01hq...", "name": "CI pipeline", "prefix": "ps_live_12ab", "last_used_at": "2023-11-07T05:31:56Z", "created_at": "2023-11-07T05:31:56Z", "secret": "ps_live_..." }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
"CI pipeline"
Key created. secret is shown only once.
secret
"key_01hq..."
"ps_live_12ab"
"ps_live_..."