# API

Pliro's API provides programmatic access to your publication's data in Pliro. The API accepts [form-encoded](https://en.wikipedia.org/wiki/URL_encoding#The_application/x-www-form-urlencoded_type) request bodies, returns [JSON-encoded](https://www.json.org) responses, and uses standard HTTP status codes, authentication, and verbs.

The API is served over [HTTPS](https://en.wikipedia.org/wiki/HTTPS) on `api.pliro.co`. We also provide a test version of the API on `api.plirotest.com` (operating in our isolated [test environment](/test-environment.md)) that you can use when building and testing out your integrations.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.pliro.co/api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
