---
title: "Get the organization's App Store Connect key."
method: GET
path: "/organizations/{organizationId}/app-store-connect-credential"
tags: ["app-store-connect"]
---

# Get the organization's App Store Connect key.

`GET /organizations/{organizationId}/app-store-connect-credential`

## Request

- Base URL: `https://api.shorebird.dev/api/v1`
- URL: `https://api.shorebird.dev/api/v1/organizations/{organizationId}/app-store-connect-credential`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

The ids of the App Store Connect key the organization gave Shorebird.
Never includes the private key.

Requires the `storeCredentials.view` permission, which only
the `admin` and `owner` roles hold.

## Response `200`

The organization's App Store Connect key.

- AppStoreConnectCredential: The App Store Connect team API key an organization gave Shorebird, without its private key.
  - `id` integer, required: The credential's ID.
  - `organization_id` integer, required: The organization the key belongs to.
  - `issuer_id` string, uuid, required: The App Store Connect issuer id, in lowercase.
  - `key_id` string, required: The App Store Connect key id.
  - `uploaded_by_user_id` integer, nullable, required: The person who last uploaded the key, while they still exist.
  - `created_at` string, date-time, required: When the organization first gave Shorebird a key.
  - `updated_at` string, date-time, required: When the key was last uploaded.
  - `rejected_at` string, date-time, nullable, required: When Apple refused the key, if it has since it was uploaded. App Store statuses stop updating until a new key is uploaded.
  - `rejection` 'unauthorized' | 'forbidden' | 'null', nullable, required: How Apple refused the key: `unauthorized` when it no longer accepts the key at all, `forbidden` when the key's role may not read the team's builds.

## Other responses

- `400`: The organization id is not an integer (`organization_id_malformed`).
- `403`: The caller lacks the `storeCredentials.view` permission.
- `404`: No such organization or the caller is not a member of it (`organization_membership_guard_error`), or the organization has no App Store Connect key (`app_store_connect_credential_not_found`).
- `424`: A database read failed (`app_store_connect_credential_database_error`, or `organization_membership_guard_error` while checking membership).
- `default`: Standard error response. Emitted for any non-2xx status where a body can be decoded into an [ErrorResponse].

---

[API](https://skmtc.dev/shorebird/apis/shorebird-codepush-api.md) - [All operations](https://skmtc.dev/shorebird/apis/shorebird-codepush-api/llms.txt) - [OpenAPI document](https://skmtc.dev/shorebird/apis/shorebird-codepush-api/revisions/941da8871d10?raw)
