---
title: "Store or replace the ASC API key"
method: PUT
path: "/appsec/7.0/apple/credential"
tags: ["Credential"]
---

# Store or replace the ASC API key

`PUT /appsec/7.0/apple/credential`

## Request body

- AscCredentialRequest — Write-only. The developer's App Store Connect API key.
  - `keyId` string, required — The key ID from App Store Connect (Users & Access → Integrations → Keys).
  - `issuerId` string, required — The issuer ID for the account's API keys.
  - `privateKeyP8` string, required — The .p8 EC private key

## Response `204`

Stored

## Other responses

- `400` — Missing or invalid parameters (plain-text reason in the body).
- `403` — Caller is anonymous / not authenticated.
- `503` — Secrets vault is not configured on this deployment (no master key), so credentials cannot be stored.

---

[API](https://skmtc.dev/codenameone/apis/codename-one-apple-signing-service.md) · [All operations](https://skmtc.dev/codenameone/apis/codename-one-apple-signing-service/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/codenameone/codename-one-apple-signing-service/revisions/f0b48d0af96f/schema)
