StatsHub Docs
APIEndpoint referenceImage

/image

Fetches a crest from the upstream stats provider and stores it.

POST
/api/image

Fetches a crest from the upstream stats provider and stores it.

Authorisation is a fixed string in the Authorization header, matching the original. That is a shared secret with no rotation and no expiry, and it is preserved because the form backend that calls this endpoint sends exactly that value — changing it is a coordinated change on both sides.

Authorization

formBackendToken
Authorization<token>

Exact FORM_BACKEND token used by the image ingestion service.

In: header

Header Parameters

Authorization?string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/image" \  -H "Content-Type: application/json" \  -d '{    "id": null,    "type": "string"  }'
{  "message": "string"}