/images/upload

POST {{endpoint}}v1/images/upload

Make sure you're using the right field to send the image, and Content-Type header

Request Body

[{"name"=>"file", "value"=>nil, "datatype"=>"null"}, {"name"=>"sub_id", "value"=>"", "datatype"=>"null"}, {"name"=>"breed_ids", "value"=>"", "datatype"=>"null"}]

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
x-api-keystring[required] - saves the uploaded image to your account.

RESPONSES

status: Created

{"id":"xxBaNrfM0","url":"https://cdn2.thecatapi.com/images/xxBaNrfM0.jpg","sub_id":"my-user-1","width":480,"height":640,"original_filename":"bl4.jpeg","pending":0,"approved":1}