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

# PUT /v1/tokenpki/{name}

`PUT /v1/tokenpki/{name}`

Decrypt the OAuth1 tokens from the Apple ABM/ASM/BE portal and store them.

## Response `200`

Newly decrypted OAuth1 tokens corresponding to the DEP name.

- OAuth1Tokens
  - `consumer_key` string
  - `consumer_secret` string
  - `access_token` string
  - `access_secret` string
  - `access_token_expiry` string, date-time

## 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/versions/20aad01e93f3/schema)
