Skip to content

API Introduction

This document describes the system's API specification.

Basics

  • Base URL: https://api.example.com/v1
  • Data format: JSON
  • Authentication: Bearer Token

Authentication

All API requests must include a token in the header:

Authorization: Bearer <your_token>

Common Response Format

json
{
  "code": 0,
  "message": "success",
  "data": {}
}

Error Codes

CodeDescription
0Success
400Bad request
401Unauthenticated
403Forbidden
404Not found
500Server error

Endpoints

最近更新