API Documentation

Complete reference for the Redirect Manager REST API

Learn how to integrate with Redirect Manager using our RESTful API endpoints.

API Overview

The Redirect Manager API provides RESTful endpoints for managing URL redirects, authentication, and system health monitoring.

All endpoints use JSON for request and response payloads. Authentication is required for most endpoints using JWT tokens.

Base URL

http(s)://${YOUR_DOMAIN:-localhost:8080}/api/v1

Note:

You can configure the API base path prefix using the BASE_API_PATH environment variable. By default, it points to /api.

Why you might want to change the base path:

  • To avoid conflicts with other services running on the same domain.
  • To avoid conflicts with your redirects paths.

Endpoint Categories

Authentication

Obtain and manage authentication tokens for API access.

POST

/auth/login

- Obtain JWT token

View Details

Redirects

Manage URL redirect rules with full CRUD operations.

GET

/redirects

- List all redirects

POST

/redirects

- Create new redirect

PUT

/redirects/:id

- Update redirect

DELETE

/redirects/:id

- Delete redirect

View Details

Users

Manage user accounts and permissions. Requires Admin role.

GET

/users

- List all users

POST

/users

- Create new user

View Details

API Tokens

Manage programmatic access for your automation and tools.

GET

/api-tokens

- List your tokens

POST

/api-tokens

- Create new token

View Details

Health Check

Monitor service health and status.

GET

/health

- Service health status

View Details

Quick Start

Get started with the Redirect Manager API in just a few steps.

1

Authenticate

Obtain a JWT token using your admin credentials

2

Make API Calls

Include the token in Authorization header for protected endpoints

3

Manage Redirects

Create, update, and delete URL redirect rules