API keys
POST /me/api-keys Session only
Create a key; returns the plaintext token once.
Body
namestring required- Label to tell keys apart.Example
cli-laptop expires_atstring (RFC3339)- Optional expiry; omit for no expiry.
curl -X POST "https://freehire.dev/api/v1/me/api-keys" \
-H 'Content-Type: application/json' \
-b cookies.txt \
-d '{"name":"cli-laptop"}'{ "data": { "id": 7, "name": "cli-laptop", "token_prefix": "fh_ab12", "token": "fh_ab12...REDACTED...full-token-shown-once" } }