Requests
The API's base URL is https://jsonpad.io/api/v1.0.
All data sent and received through the API is in JSON format, including errors. For all requests, you will need to set the Accept header to application/json, otherwise the API will respond with a 400 Bad Request status code.
If you have set a JSONP callback for the request, the Accept header will not be required, as it is not possible to set headers when using JSONP. See JSONP callbacks for further information.
When sending POST, PUT or PATCH requests, you will also need to set the Content-Type header to application/json, otherwise the API will respond with a 415 Unsupported Media Type status code.
Example request $ curl https://jsonpad.io/api/v1.0/lists \ -u username:token \ -X POST \ -H "Content-Type: application/json" \ -H "Accept: application/json" \ -d '{"name":"testlist"}'
HTTP verbs
The API uses standard HTTP verbs to indicate the type of request.
GET | Used for fetching a resource or list of resources. |
POST | Used for creating resources. |
PUT | Used for updating resources. |
PATCH | Used for partially updating items with changes in JSON patch format. |
DELETE | Used for deleting a resource or list of resources. |