# `api.authentication_invalid`

API authentication is not a list of declared sign-in methods.

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

An API lists the sign-in methods it accepts, each one `authentication.jadpo`
declares (area 8):

```jadpo
application {
    apis: {
        main: {
            prefix: /v1
            authentication: [AuthenticationMethod.browser_session]
        }
    }
}
```

```text
error: API `main` accepts `browser_session`, which isn't declared
 --> app.jadpo:5:30
  |
5 |             authentication: [AuthenticationMethod.browser_session]
  |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not declared
  reason: An API accepts only the ways to sign in the application declares; `authentication.jadpo` declares no way to sign in yet.
  next: List the methods the API accepts, each one `authentication.jadpo` declares (agent)
  rule: api.authentication_invalid
  help: https://jadpo.dev/docs/errors/api.authentication_invalid

check failed: 1 error, 1 file
```
