# 6. API & Developer Ecosystem

The API and Developer Ecosystem layer enables PetVerse pets to live beyond the boundaries of the core application. Developers can integrate pets into games, AR experiences, productivity apps, virtual worlds, or social platforms. Rather than exporting static assets, PetVerse exports **state-aware digital companions** whose behaviors adapt to context and history. This makes each pet a portable identity, not just a renderable object.

The API exposes both real-time interaction endpoints and state-query endpoints. Developers can ask a pet for its current emotional state, retrieve its trait map, or invoke behavior routines that play out inside third-party applications. The structure is flexible enough to support lightweight integrations—simple avatar rendering—as well as deep, persistent ones that treat the pet as an active in-world character.


---

# 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.petverse.vip/6.-api-and-developer-ecosystem.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.
