MapScale Docs
API ReferenceHealth and contract
← MapScale API
GET/sprites/v1/{styleId}/{filename}

GET /sprites/v1/{styleId}/{filename}

Public operational checks and the OpenAPI document.

Sends this request to the live API and shows the real response.

Parameters

Equivalent request
curl \
  -H "X-MapScale-Key: $MAPSCALE_API_KEY" \
  "https://api.mapscale.io/sprites/v1/streets/your-filename"
Response
Default response
{
  "status": "200",
  "contentType": "image/png",
  "description": "The sprite sheet: `application/json` index for `*.json`, `image/png` atlas for `*.png`. All styles currently share one sheet."
}

Responses

200The sprite sheet: `application/json` index for `*.json`, `image/png` atlas for `*.png`. All styles currently share one sheet.image/png
400Invalid sprite file name.application/json
401mapscale/effect-api/UnauthorizedFailureapplication/json
403mapscale/effect-api/ForbiddenFailureapplication/json
404Unknown styleId.application/json
429mapscale/effect-api/RateLimitedFailureapplication/json
500mapscale/effect-api/MiddlewareInternalFailureapplication/json
503The sprite sheet has not been built. | mapscale/effect-api/UpstreamUnavailableFailureapplication/json

On this page

Analytics settings