keys
Create a key; the full key is returned once
Creates an API key for the signed-in site user and returns it once, in key; only its hash is stored, so it cannot be shown again. name is optional and defaults to "default". Session cookie auth, not an API key.
post/keys
Request
- Base URL: https://api.tradingpal.io/api/v1
- URL: https://api.tradingpal.io/api/v1/keys
- Auth: API key in cookie tp_sessionid
Request body
Example request
{
"name": "my-agent"
}Response
Created; key holds the full secret
Example response
{
"id": 12,
"prefix": "tp_live_a1b2c3d4",
"name": "my-agent",
"created_at": "2026-09-01T14:03:11+00:00",
"last_used_at": "2026-09-25T09:12:40+00:00",
"key": "tp_live_a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6"
}Changes
No recorded changes to this operation across all 1 revision of this API.