Authentication
Dimes uses a two-tier authentication model: API keys for partner-level operations and short-lived JWTs for user-scoped actions.
Overview
Level
Mechanism
Header
Use
API keys
curl https://api.dimes.fi/v1/prediction-markets/partners/limits \
-H "Authorization: Api-Key dm_live_skey_your_api_key"const headers = {
"Authorization": `Api-Key ${process.env.DIMES_API_KEY}`,
"Content-Type": "application/json",
};import { DimesClient, ApiKeyAuth } from "@dimes-dot-fi/sdk";
const client = new DimesClient({
auth: new ApiKeyAuth({
apiKey: process.env.DIMES_API_KEY,
walletAddress: "0x1234...abcd",
}),
});User JWTs
Generating a token
Field
Description
Using the token
Key security
Key rotation
Error responses
Status
Type
Code
Meaning
Last updated

