---
title: "POST /endpoints/agents/connectors/enroll/"
method: POST
path: "/endpoints/agents/connectors/enroll/"
tags: ["endpoints"]
---

# POST /endpoints/agents/connectors/enroll/

`POST /endpoints/agents/connectors/enroll/`

Mixin to add a used_by endpoint to return a list of all objects using this object

## Request body

- EnrollRequest — Base serializer class which doesn't implement create/update methods
  - `device_serial` string, required
  - `device_name` string, required

## Response `200`

- AgentTokenResponse — Base serializer class which doesn't implement create/update methods
  - `token` string, required
  - `expires_in` integer

## Other responses

- `400`
- `403`

---

[API](https://skmtc.dev/goauthentik/apis/authentik.md) · [All operations](https://skmtc.dev/goauthentik/apis/authentik/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/goauthentik/authentik/revisions/4e42e86021d7/schema)
