API Documentation
Overview
General information about the API.
The WPLatest API uses a RESTful architecture and is served over HTTPS. The API is versioned and follows the schema:
https://wplatest.co/api/{version}/{service}/{method}
HTTP Methods
We strictly use only GET
and POST
methods. PUT
and DELETE
are not used.
GET
GET
methods are used for reading data. Filtering, sorting, or pagination is done via query parameters.
curl "https:/wplatest.co/api/v1/plugin/update?id=plugin_123&slug=my-slug" \
-H "Authorization: Bearer <API_KEY>"
POST
POST
methods are used for creating, updating, and deleting data. Data is passed as application/json
in the request body.
curl -XPOST "https://wplatest.co/api/v1/plugin/update" \
-H "Authorization: Bearer <API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"plugin_id": "plugin_123456789012345678901234",
"zip_url": "https://example.com/plugin.zip"
}'