Media Results

Get a media result

Returns a generated image, video, audio or downloadable 3D result. Result URLs have this form and stay valid for 30 days from when the result is first recorded. Use the URL exactly as you received it: its token grants access, and no API key is needed.

get/v1/media-results/{id}

Request

  • Base URL: https://api.tokenlab.sh
  • URL: https://api.tokenlab.sh/v1/media-results/{id}
  • Auth: none required

Path parameters

idstring required

Result ID, followed by the file extension, for example .png, .mp4, .mp3 or .glb.

Query parameters

tokenstring required

Access token from the URL you received.

metadataboolean

Return the saving status as JSON instead of the file.

Response

The file, or the saving status when metadata=true.

status'saving' | 'saved' | 'failed' | 'expired' required
expires_atstring date-time required
content_typestring nullable
kind'image' | 'video' | 'audio' | '3d' required

Changes

No recorded changes to this operation across all 1 revision of this API.