Create an API key.
Changed onMints a scoped API key; the plaintext secret is returned once, and a key never carries more scopes than its creator holds. Requires the members:write scope (owner or admin).
Request
- Base URLhttps://api.smolmachines.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
API key created; the plaintext key is in this response and nowhere else, and the key records the person it acts for.
Changes
- breaking
removed the success response with the status
- info
the endpoint scheme security
ApiKeyAuthwas added to the API - info
added the new optional request property
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the success response with the status
- breaking