Provider Keys

Mint an oracle api-key

Requires a platform session or builder-portal OAuth token. Mints an api-key carrying oracle:write + read. The plaintext key is returned exactly once. Max 5 active keys per user.

post/v1/provider/keys

Request

  • Base URL: https://origin.predictasiax.com
  • URL: https://origin.predictasiax.com/v1/provider/keys
  • Auth: API key in header X-PAX-Session

Request body

namestring

Optional label for the key (defaults to "oracle").

Response

Key minted. Plaintext returned once.

keystring required

The plaintext api-key. Shown only once — store it now.

key_prefixstring required
scopesstring[] required
namestring required
notestring

Example response

{
  "key": "sk_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "key_prefix": "sk_live_a1b2c3",
  "scopes": [
    "oracle:write",
    "read"
  ],
  "note": "store this key now; it is shown only once"
}

Changes

No recorded changes to this operation across all 1 revision of this API.