---
title: "Generates a remote API token"
method: PUT
path: "/api/v1/apitoken/remote"
tags: ["API Token"]
---

# Generates a remote API token

`PUT /api/v1/apitoken/remote`

This endpoint takes as part of its payload authentication credentials for a user account on a remote dotCMS instance. It returns a token object that can be used to permit remote operation according to the role and permissions of the authenticated account.

This is used, for example, in configuring a [push publishing](https://www.dotcms.com/docs/latest/push-publishing) endpoint.

Usable only by administrators.

## Request body

- RemoteAPITokenForm
  - `tokenInfo` object

## Response `200`

Remote token generated successfully

- ResponseEntityApiTokenWithJwtView
  - `errors` ErrorEntity[]
    - `errorCode` string
    - `message` string
    - `fieldName` string
  - `entity` object
  - `messages` MessageEntity[]
    - `message` string
  - `i18nMessagesMap` object
  - `permissions` string[]
  - `pagination` Pagination
    - `currentPage` integer
    - `perPage` integer
    - `totalEntries` integer

## Other responses

- `400` — Bad request
- `401` — Invalid user
- `403` — Forbidden
- `415` — Unsupported Media Type
- `500` — Unexpected server error

---

[API](https://skmtc.dev/jostens/apis/dotcms-rest-api.md) · [All operations](https://skmtc.dev/jostens/apis/dotcms-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/jostens/dotcms-rest-api/revisions/a088fe9f515c/schema)
