Skip to Content
API ReferenceOverview

API Reference

CodeStax provides a REST API for integrating security scanning into your CI/CD pipelines, custom tools, and automation workflows.

Base URL

https://codestax.co/api

All API endpoints are prefixed with /api which is routed to the backend.

Authentication

API requests require authentication using either:

  1. API Key — For CI/CD and programmatic access (recommended)
  2. JWT Token — For session-based access (used by the web app)

See Authentication for details.

Response Format

All responses are JSON. Successful responses return the data directly:

{ "id": "abc123", "status": "completed", "issues_count": 5 }

Error responses include a detail field:

{ "detail": "Not authenticated" }

HTTP Status Codes

CodeMeaning
200Success
201Created
400Bad request (invalid parameters)
401Not authenticated
403Forbidden (insufficient permissions)
404Resource not found
422Validation error
429Rate limited
500Internal server error

Rate Limits

API requests are rate-limited based on your plan:

PlanRate Limit
Free100 requests/hour
Pro1,000 requests/hour
Team5,000 requests/hour
EnterpriseCustom

When rate limited, you’ll receive a 429 response. Wait and retry.

Pagination

List endpoints return paginated results. Use skip and limit query parameters:

GET /api/scans?skip=0&limit=15