---
title: "Generate registration key for nodes"
method: POST
path: "/api/authentication/registrationkey"
tags: ["Authentication"]
---

# Generate registration key for nodes

`POST /api/authentication/registrationkey`

Generates a registration key that can be used to register new nodes without having to register them individually. The key is valid for the specified time.

## Request body

- RegistrationKey — Information about a registration key.
  - `validFrom` string, date-time, nullable — Date and time when the registration key is valid from.
  - `validTo` string, date-time, nullable — Date and time when the registration key is valid to.
  - `type` string, nullable — Type that the nodes using the registration key gets. Avaliable values are `Production` and `DevAndTest`.

## Response `200`

JWT token

- string

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `503` — Service Unavailable

---

[API](https://skmtc.net/crosser/apis/edge-director-api.md) · [All operations](https://skmtc.net/crosser/apis/edge-director-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/crosser/edge-director-api/versions/746b3f44e69d/schema)
