Account
Create an API key
POST
The secret is in this response only. A key without scopes has full access. Needs a full-access API key or a signed-in session.
bearerheader
AuthorizationBearer <token>An API key, an OAuth access token, or a signed-in session token.
application/json- body
name*stringLength
1 <= length <= 60scopes?array<>Items
items <= 7Created
application/json- response
secret*stringkey*curl -X POST 'https://fastwater.app/v1/api-keys' \ -H 'Content-Type: application/json' \ -d '{ "name": "string"}'Example Response
{ "secret": "string", "key": { "id": "string", "name": "string", "scopes": [ "files:read" ], "createdAt": "2019-08-24T14:15:22Z", "lastUsedAt": "2019-08-24T14:15:22Z" }}