Create an API key
Answers the key once; only its hash is stored.
POST
Answers the key once; only its hash is stored.
application/json- body
name*stringLength
1 <= length <= 100scope*stringValue in
"read""propose""write"OK
application/json- response
apiKey*key*stringcurl -X POST 'https://api.postforge.dev/v1/api-keys' \ -H 'Content-Type: application/json' \ -d '{ "name": "string", "scope": "read"}'{ "apiKey": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "scope": "read", "prefix": "string", "createdBy": "string", "createdAt": "2019-08-24T14:15:22Z", "lastUsedAt": "2019-08-24T14:15:22Z", "rotatedAt": "2019-08-24T14:15:22Z", "status": "active", "revokedAt": "2019-08-24T14:15:22Z" }, "key": "string"}