Pool resets every 12 hours. Rate limit: 10 messages / min per key. Token counts are approximate (≈ 1 token per 4 chars).
| Key path | Type | Description |
|---|---|---|
| config.allowRequests | boolean | When false, all incoming API requests are rejected with 503. |
| config.enableAuthentication | boolean | Enables OAuth-style request authentication. When false, no auth checks are performed. |
| oauth.oauthPassword | string | Shared password used when authenticationType is "Password". Verified against ?pswd= in the request URL. |
| oauth.oauthKey | string (64 chars) | 64-character secret key used when authenticationType is "Key". Matched against oauthKey in the JSON body. |
| oauth.authenticationType | enum |
Which auth method to enforce.
Passwordpassword
Keykey
|
Pass ?apikey=<DAK_KEY> in the URL as normal,
and include oauthKey + oauthType in the JSON body.
The worker reads the stored 64-char key from D1 and compares.
{
"message": "Your prompt here",
"oauthKey": "64-character-secret-key-here",
"oauthType": "key"
}
The oauthType field must be the string "key" (case-insensitive).
Pass the password as a URL query parameter. The worker fetches oauthPassword
from D1 and compares it against ?pswd=.
POST /v1/model/orbus-low?apikey=dak_your_key&pswd=my_password
The password is read from oauth.oauthPassword in require.jsonc stored in your D1 database.