Success Responses

When the API call is successful accepted (and processed), Picsart returns a data object or array with a 2xx HTTP response code. The body is a JSON that includes the status confirmation (success) and the data that holds the result information.

{
  "data": {
    "image_id": "string",
    "image_url": "string"
  },
  "status": "success"
}

📘

Success responses return a 2xx response code.

📘

When there's an error, the API returns an error object instead. Errors return a 4xx or 5xx response code.

See also

IETF HTTP status code registry
RFC 2616, section 6.1.1
HTTP status codes on Wikipedia