API Response

All Plivo APIs return a response in json format. An api_id is set in each response to uniquely identify your request. The API returns one of the following HTTP status codes.

  • 200 - Request has been executed
  • 201 - Resource created
  • 202 - Resource changed
  • 204 - Resource deleted
  • 400 - A parameter is missing or is invalid
  • 401 - Authentication failed
  • 404 - Resource cannot be found
  • 405 - HTTP method not allowed
  • 500 - Server error

Response Examples

Success

{
  "api_id": "97ceeb52-58b6-11e1-86da-77300b68f8bb",
  "message": "call fired",
  "request_uuid": "75b26856-8638-11e0-802c-6d99d509954e"
}

Error

{
  "api_id": "97ceeb52-58b6-11e1-86da-77300b68f8bb",
  "error": "answer_url parameter is missing",
  "request_uuid": "56hf4856-8638-11e0-802c-65j6gd39954e"
}

Response Attributes

Parameter Description
api_id Identifies the request.
error Indicates there is an error and provides information regarding the error.
message Provides information regarding request