API Reference

Build powerful integrations with CodeArena. Access problems, submit solutions, run code, and retrieve leaderboard data programmatically.

Base URLhttps://api.codearena.com/v1

Quick Start

01

Get Your API Key

Register an account and generate your personal API key from the dashboard settings.

02

Make Your First Request

Use your key in the Authorization header to authenticate all API calls.

03

Explore Endpoints

Browse the full reference below to discover all available resources and actions.

Authentication

All API requests require a Bearer token in the Authorization header. Obtain your token by logging in or registering through the Auth endpoints.

Bearer token authentication
Tokens expire after 7 days
All endpoints use HTTPS
Example Request
curl -X GET https://api.codearena.com/v1/problems \
  -H "Authorization: Bearer eyJhbGciOiJI..." \
  -H "Content-Type: application/json"

Endpoint Reference

Rate Limits

TierRequestsBurst Limit
Free100 / hour10 / min
Pro1,000 / hour50 / min
EnterpriseUnlimitedCustom

Error Codes

400Bad Request

Invalid parameters or malformed JSON body.

401Unauthorized

Missing or invalid authentication token.

403Forbidden

Insufficient permissions for this action.

404Not Found

The requested resource does not exist.

429Rate Limited

Too many requests. Slow down and retry.

500Server Error

Something went wrong on our end.

Ready to Build?

Explore our SDKs, join the developer community, or dive straight into the code. We are here to help you ship faster.