Specright Specification to Product System API
Authentication
Overview

Authentication Request
| Method | URL | Headers | Body |
|---|---|---|---|
| POST | https://api.example.com/auth/token | Content-Type: application/jsonAccept: application/json | { "username": "your_username", "password": "your_password" } |
Authentication Response
| Status Code | Headers | Body |
|---|---|---|
| 200 | Content-Type: application/json | { "access_token": "your_access_token", "token_type": "Bearer", "expires_in": 3600 } |
| 401 | Content-Type: application/json | { "error": "invalid_credentials", "message": "The username or password is incorrect." } |