API Key
Create API Key
Changed onCreates an API key and returns the Base64 encoded API key. Expects the Base64 encoded master API key in the header. Use the master API key displayed in the server console at startup.
WARNING: make sure to set the MASTER_KEY_SECRET environment variable to a secret, otherwise your generated API keys will be compromised. For development purposes you may also use the SeekStorm server console command 'create' to create an demo API key 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA='.
post/api/v1/apikey
Request
- Base URLhttp://127.0.0.1
- Authnone declared. Required headers: apikey
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
apikeystring required
YOUR_MASTER_API_KEY
Request body
Response
API key created, returns Base64 encoded API key
Changes
- info
added the new optional request property
- info
- info
api operation id
create_apikey_apiremoved and replaced withcreate_api_key
- info