# Base URLs and environment

## API base URL

Use the production API origin as your base URL:

```
https://app.perceptis.ai
```

All v1 paths are under:

```
{PERCEPTIS_API_BASE_URL}/api/v1/
```

For example:

* `POST https://app.perceptis.ai/api/v1/generate`
* `GET https://app.perceptis.ai/api/v1/status/{job_id}`

Do not include `/api` in `PERCEPTIS_API_BASE_URL`; client code and examples append `/api/v1/...`.

## Environment variables

| Variable                 | Use                                                         |
| ------------------------ | ----------------------------------------------------------- |
| `PERCEPTIS_API_BASE_URL` | API origin only, for example `https://app.perceptis.ai`.    |
| `PERCEPTIS_API_KEY`      | Your API key from Developer Settings. Store it as a secret. |

Copy [tooling-env.example](https://github.com/Whiteboard-Intelligence/perceptis/blob/main/docs/public/developer/public-api/tooling-env.example) as a starting point.

## Example

```bash
export PERCEPTIS_API_BASE_URL="https://app.perceptis.ai"
export PERCEPTIS_API_KEY="sk-live-per-..."
```

Then call:

```bash
curl -sS "${PERCEPTIS_API_BASE_URL}/api/v1/status/${JOB_ID}" \
  -H "Authorization: Bearer ${PERCEPTIS_API_KEY}"
```

## Organization-specific API hosts

If Perceptis provides a dedicated API host for your organization, use that origin in `PERCEPTIS_API_BASE_URL` and keep the same `/api/v1/...` paths.


---

# 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.perceptis.ai/perceptis-api-v1/infra-routing-and-env.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.
