---
title: "GET /v1/tokenpki/{name}"
method: GET
path: "/v1/tokenpki/{name}"
---

# GET /v1/tokenpki/{name}

`GET /v1/tokenpki/{name}`

Generate and store a new X.509 certificate and RSA private key (keypair) for exchanging the encrypted DEP OAuth1 tokens via the Apple ABM/ASM/BE portal. Each request generates a new (and overwrites the existing) keypair. The certificate is returned.

## Response `200`

X.509 certificate of the keypair used to encrypted the OAuth1 tokens.

## Other responses

- `400` — There was a problem with the supplied request. The request was in an incorrect format or other request data error.
- `401` — API key is missing or invalid.
- `500` — An error occured on this endpoint.

---

[API](https://skmtc.net/fleetdm/apis/nanodep-depserver-api.md) · [All operations](https://skmtc.net/fleetdm/apis/nanodep-depserver-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/fleetdm/nanodep-depserver-api/revisions/20aad01e93f3/schema)
