Ditto Operator
Ditto Operator API
API Keys
Create an API Key
Creates an API key associated with a particular Big Peer app.
POST
/
namespace
/
{namespace}
/
bigPeer
/
{big_peer_name}
/
app
/
{app_name}
/
apiKey
curl --request POST \
--url http://localhost:{port}/namespace/{namespace}/bigPeer/{big_peer_name}/app/{app_name}/apiKey \
--header 'Content-Type: application/json' \
--data '{
"description": "API key used for staging environment.",
"expiresAt": "2100-04-13T12:00:00Z",
"name": "<string>",
"permissions": {
"qlVersion": 0,
"read": "<any>",
"remoteQuery": false,
"write": "<any>"
}
}'
"<string>"
Body
application/json
Response
200
application/json
Plaintext API key.
The response is of type string
.
Was this page helpful?
curl --request POST \
--url http://localhost:{port}/namespace/{namespace}/bigPeer/{big_peer_name}/app/{app_name}/apiKey \
--header 'Content-Type: application/json' \
--data '{
"description": "API key used for staging environment.",
"expiresAt": "2100-04-13T12:00:00Z",
"name": "<string>",
"permissions": {
"qlVersion": 0,
"read": "<any>",
"remoteQuery": false,
"write": "<any>"
}
}'
"<string>"
Assistant
Responses are generated using AI and may contain mistakes.