REST API Documentation

Integrate and automate your Git server programmatically.

Flexible JSON Endpoints

Automate your workflows with Mag's comprehensive REST API. All actions performed in the dashboard or CLI are powered by secure, authenticated API endpoints.

Token Authentication

Generate a Personal Access Token (PAT) from your account settings. Include it as a Bearer token in the HTTP Authorization header of your requests.

Rate Limiting & Safety

To ensure high availability and prevent abuse, API requests are subject to rate limits. Ensure proper exponential backoff is implemented in your automated script integrations.