# wrong_token_type

**403** · This is not a key for the public API.

A token of another kind was passed, such as a dashboard or widget token. The public API accepts only `dnt_…` keys from the «Разработчикам» (Developers) section.

## What to do

Use a secret key `dnt_pat_…` or a public key `dnt_pk_…`. How to issue one: [keys](https://developers.donatty.com/en/tokens.md).

## Example response



application/problem+json

```json
{
  "type" : "https://developers.donatty.com/errors/wrong_token_type",
  "title" : "Wrong token type",
  "status" : 403,
  "detail" : "Public API routes accept only Donatty app tokens (dnt_...); other routes never accept them.",
  "code" : "wrong_token_type"
}
```
