A key is arena_sk_ followed by 43 base64url characters (256 bits). It belongs to one Google or Apple account and acts on that real Arena account. New keys default to read scopes; add trade:write to place and cancel paper orders.
Create a key
Keys are managed with a person’s session, never with a key. Use either:
The plaintext token is returned once, at creation. Only a hash is stored; if you lose it, revoke it and create another. New keys get records:read, portfolio:read and markets:read unless you choose fewer. To trade paper, check the box in Settings, pass --trade to arena keys create, or name trade:write in the body. Live scopes are separate and off unless you tick them: trade:write:kalshi and trade:write:poly-intl. While Arena has live submission switched off, those checkboxes stay disabled. See scopes.
Limits
Limit
Value
Active keys per account
10 (409 key_limit_reached)
Keys created per 24 hours, rotations included
20 (429 key_creation_limited)
Expiry
Optional, 1–365 days. arena keys defaults to 90 days.
Rotate
Rotation creates a new key with the same label and scopes. The old key keeps working for graceSeconds (0–86,400; default 0 revokes it at once), so a deploy can switch without a gap. A rotating key does not count toward the 10-key cap.
Revocation is immediate: the next request with that key gets 401 invalid_token. Revoking twice answers 404 key_not_found, meaning the key is already gone.
Key management endpoints
The website and CLI call these. They accept a session (browser cookie, same-origin JSON only, or a signed-in CLI’s session token as the bearer). An arena_sk_ key is refused with 401 session_required, so a leaked key cannot mint its own replacement. A guest session is refused with 403 guest_account.
Keep keys server-side. Keyed endpoints send no CORS headers: a key belongs in a server, CLI or agent runner, never in browser code. If a key is ever sent over plain HTTP, revoke it.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Arena API","description":"HTTP API reference for Arena Predictions paper trading.","colors":{"primary":"#0A0A0A","light":"#EDEDED","dark":"#52525B"},"favicon":"https://mintcdn.com/arena-1ec6bfd3/QxV7kpIQlR3N5xtX/images/favicon.png?fit=max\u0026auto=format\u0026n=QxV7kpIQlR3N5xtX\u0026q=85\u0026s=aa928d2479792f64aacee8186098149b","api":{"playground":{"display":"interactive"},"examples":{"languages":["curl","python","javascript"]}},"appearance":{"default":"dark","strict":true},"navbar":{"links":[{"href":"https://arena-predictions.com/support","label":"Support"},{"href":"https://arena-predictions.com","label":"arena-predictions.com"}],"primary":{"type":"button","label":"Get an API key","href":"https://arena-predictions.com/settings#api-keys"}},"footer":{"links":[{"header":"Arena","items":[{"label":"Website","href":"https://arena-predictions.com"},{"label":"Terms","href":"https://arena-predictions.com/terms"},{"label":"Support","href":"https://arena-predictions.com/support"}]},{"header":"Agent kit","items":[{"label":"CLI","href":"https://arena-predictions.com/docs/cli"},{"label":"Agents","href":"https://arena-predictions.com/agents"},{"label":"GitHub","href":"https://github.com/ZBGC/arena-agent-kit"}]},{"header":"Specification","items":[{"label":"openapi.json","href":"https://arena-predictions.com/api/v1/openapi.json"},{"label":"llms.txt","href":"https://arena-predictions.com/llms.txt"}]}]},"seo":{"metatags":{"canonical":"https://docs.arena-predictions.com","og:image":"https://docs.arena-predictions.com/images/og.png","og:image:alt":"Arena API docs: paper trading for prediction markets at live prices","twitter:image":"https://docs.arena-predictions.com/images/og.png","twitter:image:alt":"Arena API docs: paper trading for prediction markets at live prices"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"arena-1ec6bfd3","hasAudioNarration":false,"actualSubdomain":"arena-1ec6bfd3","customDomains":["docs.arena-predictions.com"],"gitSource":{"type":"github","owner":"zbgc","repo":"arena-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6ad12102c02d2785c64df1e1","clientVersion":"0.0.4143","searchFilterCounts":[{"language":"default","tag":"API docs","count":45},{"language":"default","tag":"API reference","count":32},{"language":"default","tag":"Markets","count":12},{"language":"default","tag":"Records","count":5},{"language":"default","tag":"Conventions","count":4},{"language":"default","tag":"API keys","count":4},{"language":"default","tag":"Portfolio","count":4},{"language":"default","tag":"CLI","count":3},{"language":"default","tag":"Trading","count":3},{"language":"default","tag":"Getting started","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"getting-started/api-keys","slug":"/getting-started/api-keys","pageMetadata":{"title":"API keys","description":"Create, rotate and revoke arena_sk_ keys.","href":"/getting-started/api-keys"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Create, rotate and revoke arena_sk_ keys.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`A key is `,_jsx(_components.code,{children:`arena_sk_`}),` followed by 43 base64url characters (256 bits). It belongs to one Google or Apple account and acts on that real Arena account. New keys default to read scopes; add `,_jsx(_components.code,{children:`trade:write`}),` to place and cancel paper orders.`]}),`\n`,_jsx(Heading,{level:`2`,id:`create-a-key`,children:`Create a key`}),`\n`,_jsx(_components.p,{children:`Keys are managed with a person’s session, never with a key. Use either:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Website:`}),` `,_jsx(_components.a,{href:`https://arena-predictions.com/settings#api-keys`,children:`Settings → API keys`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`CLI:`}),` `,_jsx(_components.a,{href:`/cli`,children:`arena-prediction-cli 0.6.0`}),`, signed in with `,_jsx(_components.code,{children:`arena login`}),`:`]}),`\n`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`arena`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` keys`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` create`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --label`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"nightly job\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --save`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ./arena.key`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ARENA_API_KEY_FILE`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`./arena.key`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` arena`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` keys`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` check`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The plaintext token is returned once, at creation. Only a hash is stored; if you lose it, revoke it and create another. New keys get `,_jsx(_components.code,{children:`records:read`}),`, `,_jsx(_components.code,{children:`portfolio:read`}),` and `,_jsx(_components.code,{children:`markets:read`}),` unless you choose fewer. To trade paper, check the box in Settings, pass `,_jsx(_components.code,{children:`--trade`}),` to `,_jsx(_components.code,{children:`arena keys create`}),`, or name `,_jsx(_components.code,{children:`trade:write`}),` in the body. Live scopes are separate and off unless you tick them: `,_jsx(_components.code,{children:`trade:write:kalshi`}),` and `,_jsx(_components.code,{children:`trade:write:poly-intl`}),`. While Arena has live submission switched off, those checkboxes stay disabled. See `,_jsx(_components.a,{href:`/authentication#scopes`,children:`scopes`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`limits`,children:`Limits`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Limit`}),_jsx(_components.th,{children:`Value`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Active keys per account`}),_jsxs(_components.td,{children:[`10 (`,_jsx(_components.code,{children:`409 key_limit_reached`}),`)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Keys created per 24 hours, rotations included`}),_jsxs(_components.td,{children:[`20 (`,_jsx(_components.code,{children:`429 key_creation_limited`}),`)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Expiry`}),_jsxs(_components.td,{children:[`Optional, 1–365 days. `,_jsx(_components.code,{children:`arena keys`}),` defaults to 90 days.`]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`rotate`,children:`Rotate`}),`\n`,_jsxs(_components.p,{children:[`Rotation creates a new key with the same label and scopes. The old key keeps working for `,_jsx(_components.code,{children:`graceSeconds`}),` (0–86,400; default 0 revokes it at once), so a deploy can switch without a gap. A rotating key does not count toward the 10-key cap.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`arena`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` keys`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` rotate`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` arena_sk_4Fq1XyZ`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --grace`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 10m`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --save`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ./arena.new.key`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`revoke`,children:`Revoke`}),`\n`,_jsxs(_components.p,{children:[`Revocation is immediate: the next request with that key gets `,_jsx(_components.code,{children:`401 invalid_token`}),`. Revoking twice answers `,_jsx(_components.code,{children:`404 key_not_found`}),`, meaning the key is already gone.`]}),`\n`,_jsx(Heading,{level:`2`,id:`key-management-endpoints`,children:`Key management endpoints`}),`\n`,_jsxs(_components.p,{children:[`The website and CLI call these. They accept a session (browser cookie, same-origin JSON only, or a signed-in CLI’s session token as the bearer). An `,_jsx(_components.code,{children:`arena_sk_`}),` key is refused with `,_jsx(_components.code,{children:`401 session_required`}),`, so a leaked key cannot mint its own replacement. A guest session is refused with `,_jsx(_components.code,{children:`403 guest_account`}),`.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Method`}),_jsx(_components.th,{children:`Path`}),_jsx(_components.th,{})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`GET`})}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/api-reference/api-keys/list-api-keys`,children:_jsx(_components.code,{children:`/api_keys`})})}),_jsx(_components.td,{children:`List keys, newest first. Not paginated.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`POST`})}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/api-reference/api-keys/create-api-key`,children:_jsx(_components.code,{children:`/api_keys`})})}),_jsx(_components.td,{children:`Create. Not idempotent.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`POST`})}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/api-reference/api-keys/rotate-api-key`,children:_jsx(_components.code,{children:`/api_keys/{id}/rotate`})})}),_jsx(_components.td,{children:`Rotate with a grace period.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`DELETE`})}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/api-reference/api-keys/revoke-api-key`,children:_jsx(_components.code,{children:`/api_keys/{id}`})})}),_jsx(_components.td,{children:`Revoke.`})]})]})]}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Keep keys server-side. Keyed endpoints send no CORS headers: a key belongs in a server, CLI or agent runner, never in browser code. If a key is ever sent over plain HTTP, revoke it.`})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"API keys","description":"Create, rotate and revoke arena_sk_ keys.","href":"/getting-started/api-keys"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Create a key","slug":"create-a-key","depth":2,"children":[]},{"title":"Limits","slug":"limits","depth":2,"children":[]},{"title":"Rotate","slug":"rotate","depth":2,"children":[]},{"title":"Revoke","slug":"revoke","depth":2,"children":[]},{"title":"Key management endpoints","slug":"key-management-endpoints","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"arena-1ec6bfd3","siteName":"Arena API","title":"API keys - Arena API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-02T23:24:00.896Z","originalFileLocation":"getting-started/api-keys.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"dark\";if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Create, rotate and revoke arena_sk_ keys.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Arena API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/arena-1ec6bfd3/RX8LJPxLxaW1ZQRE/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/arena-1ec6bfd3/RX8LJPxLxaW1ZQRE/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/arena-1ec6bfd3/RX8LJPxLxaW1ZQRE/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/arena-1ec6bfd3/RX8LJPxLxaW1ZQRE/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/arena-1ec6bfd3/RX8LJPxLxaW1ZQRE/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/arena-1ec6bfd3/RX8LJPxLxaW1ZQRE/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/arena-1ec6bfd3/RX8LJPxLxaW1ZQRE/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/arena-1ec6bfd3/RX8LJPxLxaW1ZQRE/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/arena-1ec6bfd3/RX8LJPxLxaW1ZQRE/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"API keys - Arena API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create, rotate and revoke arena_sk_ keys.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Arena API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.arena-predictions.com/getting-started/api-keys\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://docs.arena-predictions.com/images/og.png\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"API keys - Arena API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create, rotate and revoke arena_sk_ keys.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://docs.arena-predictions.com/images/og.png\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/arena-1ec6bfd3/RX8LJPxLxaW1ZQRE/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Arena API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0A0A0A\">\u003cmeta data-mint-head name=\"og:image:alt\" content=\"Arena API docs: paper trading for prediction markets at live prices\">\u003cmeta data-mint-head name=\"twitter:image:alt\" content=\"Arena API docs: paper trading for prediction markets at live prices\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.arena-predictions.com/getting-started/api-keys\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/getting-started/api-keys.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.arena-predictions.com/#organization\",\"name\":\"Arena API\",\"url\":\"https://docs.arena-predictions.com\"},{\"@type\":\"WebSite\",\"@id\":\"https://docs.arena-predictions.com#website\",\"name\":\"Arena API\",\"url\":\"https://docs.arena-predictions.com\",\"publisher\":{\"@id\":\"https://docs.arena-predictions.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.arena-predictions.com/getting-started/api-keys#webpage\",\"url\":\"https://docs.arena-predictions.com/getting-started/api-keys\",\"name\":\"API keys\",\"description\":\"Create, rotate and revoke arena_sk_ keys.\",\"dateModified\":\"2026-10-02T23:24:00.896Z\",\"isPartOf\":{\"@id\":\"https://docs.arena-predictions.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.arena-predictions.com/getting-started/api-keys#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.arena-predictions.com/getting-started/api-keys#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Getting started\",\"item\":\"https://docs.arena-predictions.com/getting-started/first-request\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"API keys\",\"item\":\"https://docs.arena-predictions.com/getting-started/api-keys\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.arena-predictions.com/getting-started/api-keys#article\",\"headline\":\"API keys\",\"name\":\"API keys\",\"description\":\"Create, rotate and revoke arena_sk_ keys.\",\"url\":\"https://docs.arena-predictions.com/getting-started/api-keys\",\"mainEntityOfPage\":{\"@id\":\"https://docs.arena-predictions.com/getting-started/api-keys#webpage\"},\"image\":\"https://docs.arena-predictions.com/images/og.png\",\"dateModified\":\"2026-10-02T23:24:00.896Z\",\"publisher\":{\"@id\":\"https://docs.arena-predictions.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.arena-predictions.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Arena API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Arena API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/getting-started/api-keys.md","siteName":"Arena API","nav":{"global":null,"tabs":[{"tab":"API docs","groups":[{"group":"Welcome","pages":[{"title":"Introduction","href":""}]},{"group":"Getting started","pages":[{"title":"Making your first request","description":"Check the API is up, then ask whose account your key acts for.","href":"/getting-started/first-request"},{"title":"API keys","href":"/getting-started/api-keys"}]},{"group":"CLI","pages":[{"title":"CLI","description":"Install arena-prediction-cli 0.6.0 and sign in.","href":"/cli"},{"title":"MCP server","href":"/mcp"},{"title":"Agents","href":"/agents"}]},{"group":"Authentication","pages":[{"title":"Authentication","href":"/authentication"}]},{"group":"Conventions","pages":[{"title":"Conventions","href":"/conventions/overview"},{"title":"Pagination","href":"/conventions/pagination"},{"title":"Privacy and venue data","href":"/conventions/privacy-and-venue-data"},{"title":"Retries and idempotency","href":"/conventions/retries"}]},{"group":"Rate limits","pages":[{"title":"Rate limits","href":"/rate-limits"}]},{"group":"Errors","pages":[{"title":"Errors","href":"/errors"}]},{"group":"API reference","pages":[{"group":"Status","pages":[{"title":"Get status","deprecated":null,"version":null,"openapi":"/openapi.json get /status","href":"/api-reference/status/get-status"}]},{"group":"Identity","pages":[{"title":"Get me","deprecated":null,"version":null,"openapi":"/openapi.json get /me","href":"/api-reference/identity/get-me"},{"title":"List your organizations","deprecated":null,"version":null,"openapi":"/openapi.json get /organizations","href":"/api-reference/identity/list-your-organizations"}]},{"group":"API keys","pages":[{"title":"List API keys","deprecated":null,"version":null,"openapi":"/openapi.json get /api_keys","href":"/api-reference/api-keys/list-api-keys"},{"title":"Create API key","deprecated":null,"version":null,"openapi":"/openapi.json post /api_keys","href":"/api-reference/api-keys/create-api-key"},{"title":"Revoke API key","deprecated":null,"version":null,"openapi":"/openapi.json delete /api_keys/{id}","href":"/api-reference/api-keys/revoke-api-key"},{"title":"Rotate API key","deprecated":null,"version":null,"openapi":"/openapi.json post /api_keys/{id}/rotate","href":"/api-reference/api-keys/rotate-api-key"}]},{"group":"Usage","pages":[{"title":"Get usage","deprecated":null,"version":null,"openapi":"/openapi.json get /usage","href":"/api-reference/usage/get-usage"}]},{"group":"Records","pages":[{"title":"Get a leaderboard","deprecated":null,"version":null,"openapi":"/openapi.json get /leaderboard","href":"/api-reference/records/get-a-leaderboard"},{"title":"Get a trader","deprecated":null,"version":null,"openapi":"/openapi.json get /traders/{traderId}","href":"/api-reference/records/get-a-trader"},{"title":"Get a trader's settled picks","deprecated":null,"version":null,"openapi":"/openapi.json get /traders/{traderId}/picks","href":"/api-reference/records/get-a-traders-settled-picks"},{"title":"Get a trader's signed track record","deprecated":null,"version":null,"openapi":"/openapi.json get /traders/{traderId}/track-record","href":"/api-reference/records/get-a-traders-signed-track-record"},{"title":"Get the eval board","deprecated":null,"version":null,"openapi":"/openapi.json get /eval","href":"/api-reference/records/get-the-eval-board"}]},{"group":"Portfolio","pages":[{"title":"Get your own eval rows","deprecated":null,"version":null,"openapi":"/openapi.json get /me/eval","href":"/api-reference/portfolio/get-your-own-eval-rows"},{"title":"Get your account","deprecated":null,"version":null,"openapi":"/openapi.json get /account","href":"/api-reference/portfolio/get-your-account"},{"title":"Get your portfolio","deprecated":null,"version":null,"openapi":"/openapi.json get /portfolio","href":"/api-reference/portfolio/get-your-portfolio"},{"title":"List your trades","deprecated":null,"version":null,"openapi":"/openapi.json get /portfolio/trades","href":"/api-reference/portfolio/list-your-trades"}]},{"group":"Markets","pages":[{"title":"List instruments","deprecated":null,"version":null,"openapi":"/openapi.json get /instruments","href":"/api-reference/markets/list-instruments"},{"title":"Search instruments","deprecated":null,"version":null,"openapi":"/openapi.json get /instruments/search","href":"/api-reference/markets/search-instruments"},{"title":"Get an instrument","deprecated":null,"version":null,"openapi":"/openapi.json get /instruments/{ref}","href":"/api-reference/markets/get-an-instrument"},{"title":"Get an instrument's quotes","deprecated":null,"version":null,"openapi":"/openapi.json get /instruments/{ref}/quotes","href":"/api-reference/markets/get-an-instruments-quotes"},{"title":"Get quotes for several instruments","deprecated":null,"version":null,"openapi":"/openapi.json get /quotes","href":"/api-reference/markets/get-quotes-for-several-instruments"},{"title":"List games","deprecated":null,"version":null,"openapi":"/openapi.json get /games","href":"/api-reference/markets/list-games"},{"title":"Get a game","deprecated":null,"version":null,"openapi":"/openapi.json get /games/{ref}","href":"/api-reference/markets/get-a-game"},{"title":"Replay settled game-winner markets on paper","deprecated":null,"version":null,"openapi":"/openapi.json post /backtest","href":"/api-reference/markets/replay-settled-game-winner-markets-on-paper"},{"title":"Read price history","deprecated":null,"version":null,"openapi":"/openapi.json get /history","href":"/api-reference/markets/read-price-history"},{"title":"Read historical candles","deprecated":null,"version":null,"openapi":"/openapi.json get /history/candles","href":"/api-reference/markets/read-historical-candles"},{"title":"Read history as of a time","deprecated":null,"version":null,"openapi":"/openapi.json get /history/as_of","href":"/api-reference/markets/read-history-as-of-a-time"},{"title":"Export price history","deprecated":null,"version":null,"openapi":"/openapi.json get /history/export","href":"/api-reference/markets/export-price-history"}]},{"group":"Trading","pages":[{"title":"Place a paper order","deprecated":null,"version":null,"openapi":"/openapi.json post /portfolio/orders","href":"/api-reference/trading/place-a-paper-order"},{"title":"Cancel a paper order","deprecated":null,"version":null,"openapi":"/openapi.json delete /portfolio/orders/{orderId}","href":"/api-reference/trading/cancel-a-paper-order"},{"title":"Amend a live Kalshi order","deprecated":null,"version":null,"openapi":"/openapi.json post /portfolio/orders/{orderId}/amend","href":"/api-reference/trading/amend-a-live-kalshi-order"}]}]}]}]},"basePath":"","title":"API keys - Arena API","buildId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","deploymentId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","dynamics":[],"chunks":[]}