Fetch an attached image
GET
/ask/image/{id}
const url = 'https://api.getchord.xyz/v1/ask/image/example';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.getchord.xyz/v1/ask/image/exampleThe stored JPEG. Public by unguessable id (an <img> sends no bearer), 30 days.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”id
required
string
Image id.
Responses
Section titled “ Responses ”image/jpeg.
Media typeimage/jpeg
string format: binary
Nothing at this identity (NOT_FOUND, UNKNOWN_TOKEN, NO_ROUTE).
Media typeapplication/json
Every non-2xx body.
object
error
required
Stable machine code, e.g. INVALID_PARAMS, NOT_READY, RATE_LIMIT_EXCEEDED.
string
message
For humans.
string
statusCode
HTTP status, when included.
integer
Example
{ "error": "INVALID_PARAMS", "message": "amount must be an integer string in the token's smallest unit"}