# API Specification

Please see the specification details below.

## Authentication

Authentication key is sent in the request header:

| Key | Value |
|  --- | --- |
| Content-Type | application/json |
| X-Api-Key | API Key provided by SprintPass Pro |


## Responses

### Response codes

| Code | Status | Reason |
|  --- | --- | --- |
| 200 | OK | Resource obtained successfully. |
| 202 | ACCEPTED | Request accepted successfully. |
| 204 | NO CONTENT | Resource updated successfully. |
| 400 | BAD REQUEST | Message schema is invalid/HTTP request invalid. |
| 401 | UNAUTHORIZED | Authorization Failure. |
| 404 | NOT FOUND | Resource not found. |
| 412 | PRECONDITION FAILED | Validation failed. |
| 429 | TOO MANY REQUESTS API | Rate limit exceeded. |
| 500 | INTERNAL SERVER ERROR | Internal server error. |
| 503 | SERVICE UNAVAILABLE | The server is currently unable to handle the request due to a temporary overload or scheduled maintenance. |