# `api.prefix_required`

Declared API has no prefix.

Area 7, [HTTP](../topics/http.md); not declinable; the next step is usually the agent's.

Every declared API says the path its routes start with:

```jadpo
application {
    apis: {
        main: {
            prefix: /v1
        }
        admin: {}
    }
}
```

```text
error: API `admin` has no prefix
 --> app.jadpo:6:9
  |
6 |         admin: {}
  |         ^^^^^ no `prefix:`
  reason: Every declared API says the path its routes start with, so a URL says which API it belongs to: `main: { prefix: /v1 }`.
  next: Add `prefix: /admin` to `admin` (agent)
  rule: api.prefix_required
  help: https://jadpo.dev/docs/errors/api.prefix_required

check failed: 1 error, 1 file
```
