> ## Documentation Index
> Fetch the complete documentation index at: https://seam-feat-mintlify-migration-iteration.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Managing Credentials

> Learn how to manage credentials and assign them to users.

<Info>
  **Granting access?** [Access Grants](/use-cases/granting-access/index) are the
  default and recommended way to grant access—they manage the underlying codes
  and credentials for you, across standalone smart locks and access systems
  alike.
</Info>

An ACS generally uses digital means of access to authorize an [ACS user](../../low-level-apis/access-systems/user-management) trying to get through a specific entrance. Examples of credentials include plastic key cards, mobile keys, biometric identifiers, and PIN codes. The electronic nature of these credentials, as well as the fact that access is centralized, enables both the rapid provisioning and rescinding of access and the ability to compile access audit logs.

<figure>
  <img src="https://mintcdn.com/seam-feat-mintlify-migration-iteration/ttptfiJo49nVq_Qy/images/acs-credential-types.png?fit=max&auto=format&n=ttptfiJo49nVq_Qy&q=85&s=924fa0bf29b5200ca49cc43d3ba75232" alt="Examples of ACS user credentials" width="3200" height="1185" data-path="images/acs-credential-types.png" />

  <figcaption>
    <p>Examples of ACS user credentials</p>
  </figcaption>
</figure>

This guide provides instructions for creating and deleting various types of credentials.

<Info>
  You can assign a credential to an ACS user when you create the credential. You
  can also [assign an existing credential to an ACS
  user](/low-level-apis/access-systems/managing-credentials/assigning-credentials-to-users#assign-a-credential-to-an-acs-user).
  Further, you can [unassign a credential from an ACS
  user](/low-level-apis/access-systems/managing-credentials/assigning-credentials-to-users#unassign-a-credential-from-an-acs-user)
  without deleting the credential.
</Info>

***

## Create a Credential for an ACS User

To [create a credential for an ACS user](/api/acs/credentials/create), provide the `acs_user_id` and the desired `access_method`. Seam supports the following access methods:

* `code` for a PIN code-based credential
* `card` for a plastic key card-based credential
* `mobile_key` for a [Seam mobile key](/capability-guides/mobile-access/issuing-mobile-credentials-from-an-access-control-system#what-are-multi-phone-sync-credentials).

Depending on the ACS and the type of credential you are issuing, you can also specify the following properties for the new credential:

* PIN code.
* Start and end time frame for the validity of the credential.
* Whether the credential is a multi-phone sync credential.\
  When creating a Seam mobile key, make sure to issue a multi-phone sync credential by setting `is_multi_phone_sync_credential` to `true`.
* Manufacturer-specific data.

<Info>
  Make sure to note any manufacturer-specific metadata and restrictions. For
  details, see the applicable [device or system integration
  guide](/device-and-system-integration-guides).
</Info>

The response includes the `acs_credential_id` of the newly-created credential, the `acs_user_id` associated with the credential, and additional attributes of the credential.

<Info>
  If you are creating card-based credentials, and your ACS requires card
  encoding, see also [Creating and Encoding Card-based
  Credentials](/low-level-apis/access-systems/working-with-card-encoders-and-scanners/creating-and-encoding-card-based-credentials).
</Info>

***

### Create a PIN Code-based Credential

<Tabs>
  <Tab title="JavaScript">
    **Request:**

    ```javascript theme={null}
    await seam.acs.credentials.create({
      acs_user_id: '33333333-3333-3333-3333-333333333333',
      access_method: 'code',
      code: '824759',
    })
    ```

    **Response:**

    ```json theme={null}
    {
      acs_credential_id: '66666666-6666-6666-6666-666666666666',
      acs_user_id: '33333333-3333-3333-3333-333333333333',
      code: '824759',
      access_method: 'code',
      ...
    }
    ```
  </Tab>

  <Tab title="cURL">
    **Request:**

    ```bash theme={null}
    curl -X 'POST' \
      'https://connect.getseam.com/acs/credentials/create' \
      -H 'accept: application/json' \
      -H "Authorization: Bearer ${API_KEY}" \
      -H 'Content-Type: application/json' \
      -d '{
      "acs_user_id": "33333333-3333-3333-3333-333333333333",
      "access_method": "code",
      "code": "824759"
    }'
    ```

    **Response:**

    ```json theme={null}
    {
      "acs_credential": {
        "acs_credential_id": "66666666-6666-6666-6666-666666666666",
        "acs_user_id": "33333333-3333-3333-3333-333333333333",
        "code": "824759",
        "access_method": "code",
        ...
      },
      "ok": true
    }
    ```
  </Tab>

  <Tab title="Python">
    **Request:**

    ```python theme={null}
    seam.acs.credentials.create(
      acs_user_id="33333333-3333-3333-3333-333333333333",
      access_method="code",
      code="824759"
    )
    ```

    **Response:**

    ```
    AcsCredential(
      acs_credential_id='66666666-6666-6666-6666-666666666666',
      acs_user_id='33333333-3333-3333-3333-333333333333',
      code='824759',
      access_method='code',
      ...
    )
    ```
  </Tab>

  <Tab title="Ruby">
    **Request:**

    ```ruby theme={null}
    # Coming soon!
    ```

    **Response:**

    ```
    # Coming soon!
    ```
  </Tab>

  <Tab title="PHP">
    **Request:**

    ```php theme={null}
    $seam->acs->credentials->create(
      acs_user_id: "33333333-3333-3333-3333-333333333333",
      access_method: "code",
      code: "824759"
    );
    ```

    **Response:**

    ```json theme={null}
    {
      "acs_credential_id": "66666666-6666-6666-6666-666666666666",
      "acs_user_id": "33333333-3333-3333-3333-333333333333",
      "code": "824759",
      "access_method": "code",
      ...
    }
    ```
  </Tab>

  <Tab title="C#">
    **Request:**

    ```csharp theme={null}
    seam.CredentialsAcs.Create(
      acsUserId: "33333333-3333-3333-3333-333333333333",
      accessMethod: "code",
      code: "824759"
    );
    ```

    **Response:**

    ```json theme={null}
    {
      "acs_credential_id": "66666666-6666-6666-6666-666666666666",
      "acs_user_id": "33333333-3333-3333-3333-333333333333",
      "code": "824759",
      "access_method": "code",
      ...
    }
    ```
  </Tab>
</Tabs>

***

### Create a Card-based Credential

To create a plastic key card-based credential, set the `access_method` to `card`. Once you've created a credential, some access control systems require you to encode the card with the credential. To learn whether your ACS requires card encoding, see the [system integration guide](/device-and-system-integration-guides#access-control-systems) for your ACS. For card encoding instructions, see [Creating and Encoding Card-based Credentials](/low-level-apis/access-systems/working-with-card-encoders-and-scanners/creating-and-encoding-card-based-credentials).

<Tabs>
  <Tab title="JavaScript">
    **Request:**

    ```javascript theme={null}
    await seam.acs.credentials.create({
      acs_user_id: '33333333-3333-3333-3333-333333333333',
      access_method: 'card',
      code: '123456',
    })
    ```

    **Response:**

    ```json theme={null}
    {
      acs_credential_id: '77777777-7777-7777-7777-777777777777',
      acs_user_id: '33333333-3333-3333-3333-333333333333',
      access_method: 'card',
      ...
    }
    ```
  </Tab>

  <Tab title="cURL">
    **Request:**

    ```bash theme={null}
    curl -X 'POST' \
      'https://connect.getseam.com/acs/credentials/create' \
      -H 'accept: application/json' \
      -H "Authorization: Bearer ${API_KEY}" \
      -H 'Content-Type: application/json' \
      -d '{
      "acs_user_id": "33333333-3333-3333-3333-333333333333",
      "access_method": "card",
      "code": "123456"
    }'
    ```

    **Response:**

    ```json theme={null}
    {
      "acs_credential": {
        "acs_credential_id": "77777777-7777-7777-7777-777777777777",
        "acs_user_id": "33333333-3333-3333-3333-333333333333",
        "access_method": "card",
        ...
      },
      "ok": true
    }
    ```
  </Tab>

  <Tab title="Python">
    **Request:**

    ```python theme={null}
    seam.acs.credentials.create(
      acs_user_id="33333333-3333-3333-3333-333333333333",
      access_method="card",
      code="123456"
    )
    ```

    **Response:**

    ```
    AcsCredential(
      acs_credential_id='77777777-7777-7777-7777-777777777777',
      acs_user_id='33333333-3333-3333-3333-333333333333',
      access_method='card',
      ...
    )
    ```
  </Tab>

  <Tab title="Ruby">
    **Request:**

    ```ruby theme={null}
    # Coming soon!
    ```

    **Response:**

    ```
    # Coming soon!
    ```
  </Tab>

  <Tab title="PHP">
    **Request:**

    ```php theme={null}
    $seam->acs->credentials->create(
      acs_user_id: "33333333-3333-3333-3333-333333333333",
      access_method: "card",
      code: "123456"
    );
    ```

    **Response:**

    ```json theme={null}
    {
      "acs_credential_id": "77777777-7777-7777-7777-777777777777",
      "acs_user_id": "33333333-3333-3333-3333-333333333333",
      "access_method": "card",
      ...
    }
    ```
  </Tab>

  <Tab title="C#">
    **Request:**

    ```csharp theme={null}
    seam.CredentialsAcs.Create(
      acsUserId: "33333333-3333-3333-3333-333333333333",
      accessMethod: "card",
      code: "123456"
    );
    ```

    **Response:**

    ```
    {
      "acs_credential_id": "77777777-7777-7777-7777-777777777777",
      "acs_user_id": "33333333-3333-3333-3333-333333333333",
      "access_method": "card",
      ...
    }
    ```
  </Tab>
</Tabs>

***

### Create a Seam Mobile Key

Depending on the ACS for which you want to create a credential, you may also need to include system-specific metadata. See the [system integration guide](/device-and-system-integration-guides#access-control-systems) for your ACS. For more information about mobile access and issuing mobile credentials, see [Mobile Access](/capability-guides/mobile-access/index) and [Issuing Mobile Credentials from an Access Control System](/capability-guides/mobile-access/issuing-mobile-credentials-from-an-access-control-system).

<Tabs>
  <Tab title="JavaScript">
    **Request:**

    <Info>
      This request contains manufacturer-specific metadata that may vary by
      [manufacturer](/device-and-system-integration-guides#access-control-systems).
    </Info>

    ```javascript theme={null}
    await seam.acs.credentials.create({
      acs_user_id: "33333333-3333-3333-3333-333333333333",
      allowed_acs_entrance_ids: [
        "55555555-5555-5555-5555-555555555555",
        "55555555-5555-5555-5555-000000000000"
      ],
      credential_manager_acs_system_id: "88888888-8888-8888-8888-888888888888",
      access_method: "mobile_key",
      is_multi_phone_sync_credential: true,
      starts_at: "2024-03-01T10:40:00Z",
      ends_at: "2024-03-04T10:40:00Z",
      ...
    });
    ```

    **Response:**

    <Info>
      This response contains manufacturer-specific metadata that may vary by
      [manufacturer](/device-and-system-integration-guides#access-control-systems).
    </Info>

    ```json theme={null}
    {
      acs_credential_id: '99999999-9999-9999-9999-999999999999',
      acs_user_id: '33333333-3333-3333-3333-333333333333',
      access_method: 'mobile_key',
      is_multi_phone_sync_credential: true,
      ...
    }
    ```
  </Tab>

  <Tab title="cURL">
    **Request:**

    <Info>
      This request contains manufacturer-specific metadata that may vary by
      [manufacturer](/device-and-system-integration-guides#access-control-systems).
    </Info>

    ```bash theme={null}
    curl -X 'POST' \
      'https://connect.getseam.com/acs/credentials/create' \
      -H 'accept: application/json' \
      -H "Authorization: Bearer ${API_KEY}" \
      -H 'Content-Type: application/json' \
      -d '{
      "acs_user_id": "33333333-3333-3333-3333-333333333333",
      "allowed_acs_entrance_ids": [
        "55555555-5555-5555-5555-555555555555",
        "55555555-5555-5555-5555-000000000000"
      ],
      "credential_manager_acs_system_id": "88888888-8888-8888-8888-888888888888",
      "access_method": "mobile_key",
      "is_multi_phone_sync_credential": true,
      "starts_at": "2024-03-01T10:40:00Z",
      "ends_at": "2024-03-04T10:40:00Z",
      ...
    }'
    ```

    **Response:**

    <Info>
      This response contains manufacturer-specific metadata that may vary by
      [manufacturer](/device-and-system-integration-guides#access-control-systems).
    </Info>

    ```json theme={null}
    {
      "acs_credential": {
        "acs_credential_id": "99999999-9999-9999-9999-999999999999",
        "acs_user_id": "33333333-3333-3333-3333-333333333333",
        "access_method": "mobile_key",
        "is_multi_phone_sync_credential": true,
        ...
      },
      "ok": true
    }
    ```
  </Tab>

  <Tab title="Python">
    **Request:**

    <Info>
      This request contains manufacturer-specific metadata that may vary by
      [manufacturer](/device-and-system-integration-guides#access-control-systems).
    </Info>

    ```python theme={null}
    seam.acs.credentials.create(
      acs_user_id="33333333-3333-3333-3333-333333333333",
      allowed_acs_entrance_ids=[
        "55555555-5555-5555-5555-555555555555",
        "55555555-5555-5555-5555-000000000000"
      ],
      credential_manager_acs_system_id="88888888-8888-8888-8888-888888888888",
      access_method="mobile_key",
      is_multi_phone_sync_credential=True,
      starts_at="2024-03-01T10:40:00Z",
      ends_at="2024-03-04T10:40:00Z",
      ...
    )
    ```

    **Response:**

    <Info>
      This response contains manufacturer-specific metadata that may vary by
      [manufacturer](/device-and-system-integration-guides#access-control-systems).
    </Info>

    ```
    AcsCredential(
      acs_credential_id='99999999-9999-9999-9999-999999999999',
      acs_user_id='33333333-3333-3333-3333-333333333333',
      access_method='mobile_key',
      is_multi_phone_sync_credential=True,
      ...
    )
    ```
  </Tab>

  <Tab title="Ruby">
    **Request:**

    ```ruby theme={null}
    # Coming soon!
    ```

    **Response:**

    ```
    # Coming soon!
    ```
  </Tab>

  <Tab title="PHP">
    **Request:**

    <Info>
      This request contains manufacturer-specific metadata that may vary by
      [manufacturer](/device-and-system-integration-guides#access-control-systems).
    </Info>

    ```php theme={null}
    $seam->acs->credentials->create(
      acs_user_id: "33333333-3333-3333-3333-333333333333",
      allowed_acs_entrance_ids: [
        "55555555-5555-5555-5555-555555555555",
        "55555555-5555-5555-5555-000000000000"
      ],
      credential_manager_acs_system_id: "88888888-8888-8888-8888-888888888888",
      access_method: "mobile_key",
      is_multi_phone_sync_credential: true,
      starts_at: "2024-03-01T10:40:00Z",
      ends_at: "2024-03-04T10:40:00Z",
      ...
    );
    ```

    **Response:**

    <Info>
      This response contains manufacturer-specific metadata that may vary by
      [manufacturer](/device-and-system-integration-guides#access-control-systems).
    </Info>

    ```json theme={null}
    {
      "acs_credential_id": "99999999-9999-9999-9999-999999999999",
      "acs_user_id": "33333333-3333-3333-3333-333333333333",
      "access_method": "mobile_key",
      "is_multi_phone_sync_credential": true,
      ...
    }
    ```
  </Tab>

  <Tab title="C#">
    **Request:**

    <Info>
      This request contains manufacturer-specific metadata that may vary by
      [manufacturer](/device-and-system-integration-guides#access-control-systems).
    </Info>

    ```csharp theme={null}
    seam.CredentialsAcs.Create(
      acsUserId: "33333333-3333-3333-3333-333333333333",
      allowedAcsEntranceIds: new List<string>
        {
          "55555555-5555-5555-5555-555555555555",
          "55555555-5555-5555-5555-000000000000"
        },
      credentialManagerAcsSystemId: "88888888-8888-8888-8888-888888888888",
      accessMethod: "mobile_key",
      isMultiPhoneSyncCredential: true,
      startsAt: "2024-03-01T10:40:00Z",
      endsAt: "2024-03-04T10:40:00Z",
      ...
    );
    ```

    **Response:**

    <Info>
      This response contains manufacturer-specific metadata that may vary by
      [manufacturer](/device-and-system-integration-guides#access-control-systems).
    </Info>

    ```json theme={null}
    {
      "acs_credential_id": "99999999-9999-9999-9999-999999999999",
      "acs_user_id": "33333333-3333-3333-3333-333333333333",
      "access_method": "mobile_key",
      "is_multi_phone_sync_credential": true,
      ...
    }
    ```
  </Tab>
</Tabs>

***

## List Credentials

You can [list all ACS credentials](/api/acs/credentials/list) for a specific [ACS user](../../low-level-apis/access-systems/user-management) or [user identity](/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity). You can also [list all credentials for an ACS system](/api/acs/credentials/list).

### List Credentials by ACS User

To [list all ACS credentials](/api/acs/credentials/list) for a specific [ACS user](../../low-level-apis/access-systems/user-management), provide the `acs_user_id`.

<Tabs>
  <Tab title="JavaScript">
    **Request:**

    ```javascript theme={null}
    await seam.acs.credentials.list({
      acs_user_id: '33333333-3333-3333-3333-333333333333',
    })
    ```

    **Response:**

    <Info>
      This response contains manufacturer-specific metadata that may vary by
      [manufacturer](/device-and-system-integration-guides#access-control-systems).
    </Info>

    ```json theme={null}
    [
      {
        acs_credential_id: '99999999-9999-9999-9999-999999999999',
        acs_user_id: '33333333-3333-3333-3333-333333333333',
        ...
      },
      ...
    ]
    ```
  </Tab>

  <Tab title="cURL">
    **Request:**

    ```bash theme={null}
    # Use GET or POST.
    curl -X 'GET' \
      'https://connect.getseam.com/acs/credentials/list' \
      -H 'accept: application/json' \
      -H "Authorization: Bearer ${API_KEY}" \
      -H 'Content-Type: application/json' \
      -d '{
      "acs_user_id": "33333333-3333-3333-3333-333333333333"
    }'
    ```

    **Response:**

    <Info>
      This response contains manufacturer-specific metadata that may vary by
      [manufacturer](/device-and-system-integration-guides#access-control-systems).
    </Info>

    ```json theme={null}
    {
      "acs_credentials": [
        {
          "acs_credential_id": "99999999-9999-9999-9999-999999999999",
          "acs_user_id": "33333333-3333-3333-3333-333333333333",
          ...
        }
        ...
      ],
      "ok": true
    }
    ```
  </Tab>

  <Tab title="Python">
    **Request:**

    ```python theme={null}
    seam.acs.credentials.list(
      acs_user_id="33333333-3333-3333-3333-333333333333"
    )
    ```

    **Response:**

    <Info>
      This response contains manufacturer-specific metadata that may vary by
      [manufacturer](/device-and-system-integration-guides#access-control-systems).
    </Info>

    ```
    [
      AcsCredential(
        acs_credential_id='99999999-9999-9999-9999-999999999999',
        acs_user_id='33333333-3333-3333-3333-333333333333',
        ...
      ),
      ...
    ]
    ```
  </Tab>

  <Tab title="Ruby">
    **Request:**

    ```ruby theme={null}
    # Coming soon!
    ```

    **Response:**

    ```
    # Coming soon!
    ```
  </Tab>

  <Tab title="PHP">
    **Request:**

    ```php theme={null}
    $seam->acs->credentials->list(
      acs_user_id: "33333333-3333-3333-3333-333333333333"
    );
    ```

    **Response:**

    <Info>
      This response contains manufacturer-specific metadata that may vary by
      [manufacturer](/device-and-system-integration-guides#access-control-systems).
    </Info>

    ```json theme={null}
    [
      {
        "acs_credential_id": "99999999-9999-9999-9999-999999999999",
        "acs_user_id": "33333333-3333-3333-3333-333333333333",
        ...
      },
      ...
    ]
    ```
  </Tab>

  <Tab title="C#">
    **Request:**

    ```csharp theme={null}
    seam.CredentialsAcs.List(
      acsUserId: "33333333-3333-3333-3333-333333333333"
    );
    ```

    **Response:**

    <Info>
      This response contains manufacturer-specific metadata that may vary by
      [manufacturer](/device-and-system-integration-guides#access-control-systems).
    </Info>

    ```json theme={null}
    {
      "acs_credential_id": "99999999-9999-9999-9999-999999999999",
      "acs_user_id": "33333333-3333-3333-3333-333333333333",
      ...
    }
    ...
    ```
  </Tab>
</Tabs>

### List Credentials by User Identity

To [list all ACS credentials](/api/acs/credentials/list) for a specific [user identity](/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity), provide the `user_identity_id`.

<Tabs>
  <Tab title="JavaScript">
    **Request:**

    ```javascript theme={null}
    await seam.acs.credentials.list({
      user_identity_id: '22222222-2222-2222-2222-222222222222',
    })
    ```

    **Response:**

    <Info>
      This response contains manufacturer-specific metadata that may vary by
      [manufacturer](/device-and-system-integration-guides#access-control-systems).
    </Info>

    ```json theme={null}
    [
      {
        acs_credential_id: '99999999-9999-9999-9999-999999999999',
        acs_user_id: '33333333-3333-3333-3333-333333333333',
        ...
      },
      ...
    ]
    ```
  </Tab>

  <Tab title="cURL">
    **Request:**

    ```bash theme={null}
    # Use GET or POST.
    curl -X 'GET' \
      'https://connect.getseam.com/acs/credentials/list' \
      -H 'accept: application/json' \
      -H "Authorization: Bearer ${API_KEY}" \
      -H 'Content-Type: application/json' \
      -d '{
      "user_identity_id": "22222222-2222-2222-2222-222222222222"
    }'
    ```

    **Response:**

    <Info>
      This response contains manufacturer-specific metadata that may vary by
      [manufacturer](/device-and-system-integration-guides#access-control-systems).
    </Info>

    ```json theme={null}
    {
      "acs_credentials": [
        {
          "acs_credential_id": "99999999-9999-9999-9999-999999999999",
          "acs_user_id": "33333333-3333-3333-3333-333333333333",
          ...
        }
        ...
      ],
      "ok": true
    }
    ```
  </Tab>

  <Tab title="Python">
    **Request:**

    ```python theme={null}
    seam.acs.credentials.list(
      user_identity_id="22222222-2222-2222-2222-222222222222"
    )
    ```

    **Response:**

    <Info>
      This response contains manufacturer-specific metadata that may vary by
      [manufacturer](/device-and-system-integration-guides#access-control-systems).
    </Info>

    ```
    [
      AcsCredential(
        acs_credential_id='99999999-9999-9999-9999-999999999999',
        acs_user_id='33333333-3333-3333-3333-333333333333',
        ...
      ),
      ...
    ]
    ```
  </Tab>

  <Tab title="Ruby">
    **Request:**

    ```ruby theme={null}
    # Coming soon!
    ```

    **Response:**

    ```
    # Coming soon!
    ```
  </Tab>

  <Tab title="PHP">
    **Request:**

    ```php theme={null}
    $seam->acs->credentials->list(
      user_identity_id: "22222222-2222-2222-2222-222222222222"
    );
    ```

    **Response:**

    <Info>
      This response contains manufacturer-specific metadata that may vary by
      [manufacturer](/device-and-system-integration-guides#access-control-systems).
    </Info>

    ```json theme={null}
    [
      {
        "acs_credential_id": "99999999-9999-9999-9999-999999999999",
        "acs_user_id": "33333333-3333-3333-3333-333333333333",
        ...
      },
      ...
    ]
    ```
  </Tab>

  <Tab title="C#">
    **Request:**

    ```csharp theme={null}
    seam.CredentialsAcs.List(
      userIdentityId: "22222222-2222-2222-2222-222222222222"
    );
    ```

    **Response:**

    <Info>
      This response contains manufacturer-specific metadata that may vary by
      [manufacturer](/device-and-system-integration-guides#access-control-systems).
    </Info>

    ```json theme={null}
    {
      "acs_credential_id": "99999999-9999-9999-9999-999999999999",
      "acs_user_id": "33333333-3333-3333-3333-333333333333",
      ...
    }
    ...
    ```
  </Tab>
</Tabs>

***

## Get a Credential

To [get a credential](/api/acs/credentials/get), provide the `acs_credential_id` of the credential that you want to retrieve. These details include the user associated with the credential, the access method, the schedule for the credential, if applicable, and so on.

<Tabs>
  <Tab title="JavaScript">
    **Request:**

    ```javascript theme={null}
    await seam.acs.credentials.get({
      acs_credential_id: '66666666-6666-6666-6666-666666666666',
    })
    ```

    **Response:**

    <Info>
      This response contains manufacturer-specific metadata that may vary by
      [manufacturer](/device-and-system-integration-guides#access-control-systems).
    </Info>

    ```json theme={null}
    {
      acs_credential_id: '99999999-9999-9999-9999-999999999999',
      acs_user_id: '33333333-3333-3333-3333-333333333333',
      acs_system_id: '11111111-1111-1111-1111-111111111111',
      access_method: 'mobile_key',
      ...
    }
    ```
  </Tab>

  <Tab title="cURL">
    **Request:**

    ```bash theme={null}
    curl -X 'POST' \
      'https://connect.getseam.com/acs/credentials/get' \
      -H "Authorization: Bearer ${API_KEY}" \
      -H 'Content-Type: application/json' \
      -d '{
      "acs_credential_id": "66666666-6666-6666-6666-666666666666"
    }'
    ```

    **Response:**

    <Info>
      This response contains manufacturer-specific metadata that may vary by
      [manufacturer](/device-and-system-integration-guides#access-control-systems).
    </Info>

    ```json theme={null}
    {
      "acs_credential": {
        "acs_credential_id": "99999999-9999-9999-9999-999999999999",
        "acs_user_id": "33333333-3333-3333-3333-333333333333",
        "acs_system_id": "11111111-1111-1111-1111-111111111111",
        "access_method": "mobile_key",
        ...
      },
      "ok": true
    }
    ```
  </Tab>

  <Tab title="Python">
    **Request:**

    ```python theme={null}
    seam.acs.credentials.get(
      acs_credential_id="66666666-6666-6666-6666-666666666666"
    )
    ```

    **Response:**

    <Info>
      This response contains manufacturer-specific metadata that may vary by
      [manufacturer](/device-and-system-integration-guides#access-control-systems).
    </Info>

    ```
    AcsCredential(
      acs_credential_id='99999999-9999-9999-9999-999999999999',
      acs_user_id='33333333-3333-3333-3333-333333333333',
      acs_system_id='11111111-1111-1111-1111-111111111111',
      access_method='mobile_key',
      ...
    )
    ```
  </Tab>

  <Tab title="Ruby">
    **Request:**

    ```ruby theme={null}
    # Coming soon!
    ```

    **Response:**

    ```
    # Coming soon!
    ```
  </Tab>

  <Tab title="PHP">
    **Request:**

    ```php theme={null}
    $seam->acs->credentials->get(
      acs_credential_id: "66666666-6666-6666-6666-66666666"
    );
    ```

    **Response:**

    <Info>
      This response contains manufacturer-specific metadata that may vary by
      [manufacturer](/device-and-system-integration-guides#access-control-systems).
    </Info>

    ```
    {
      "acs_credential_id": "99999999-9999-9999-9999-999999999999",
      "acs_user_id": "33333333-3333-3333-3333-333333333333",
      "acs_system_id": "11111111-1111-1111-1111-111111111111",
      "access_method": "mobile_key",
      ...
    }
    ```
  </Tab>

  <Tab title="C#">
    **Request:**

    ```csharp theme={null}
    seam.CredentialsAcs.Get(
      acsCredentialId: "66666666-6666-6666-6666-66666666"
    );
    ```

    **Response:**

    <Info>
      This response contains manufacturer-specific metadata that may vary by
      [manufacturer](/device-and-system-integration-guides#access-control-systems).
    </Info>

    ```
    {
      "acs_credential_id": "99999999-9999-9999-9999-999999999999",
      "acs_user_id": "33333333-3333-3333-3333-333333333333",
      "acs_system_id": "11111111-1111-1111-1111-111111111111",
      "access_method": "mobile_key",
      ...
    }
    ```
  </Tab>
</Tabs>

***

## Delete a Credential

To [delete a credential](/api/acs/credentials/delete), provide the `acs_credential_id`.

<Tabs>
  <Tab title="JavaScript">
    **Request:**

    ```javascript theme={null}
    await seam.acs.credentials.delete({
      acs_credential_id: '66666666-6666-6666-6666-666666666666',
    })
    ```

    **Response:**

    ```json theme={null}
    void
    ```
  </Tab>

  <Tab title="cURL">
    **Request:**

    ```bash theme={null}
    curl -X 'POST' \
      'https://connect.getseam.com/acs/credentials/delete' \
      -H 'accept: application/json' \
      -H "Authorization: Bearer ${API_KEY}" \
      -H 'Content-Type: application/json' \
      -d '{
      "acs_credential_id": "66666666-6666-6666-6666-666666666666"
    }'
    ```

    **Response:**

    ```json theme={null}
    {
      "ok": true
    }
    ```
  </Tab>

  <Tab title="Python">
    **Request:**

    ```python theme={null}
    seam.acs.credentials.delete(
      acs_credential_id="66666666-6666-6666-6666-666666666666"
    )
    ```

    **Response:**

    ```
    None
    ```
  </Tab>

  <Tab title="Ruby">
    **Request:**

    ```ruby theme={null}
    # Coming soon!
    ```

    **Response:**

    ```
    # Coming soon!
    ```
  </Tab>

  <Tab title="PHP">
    **Request:**

    ```php theme={null}
    $seam->acs->credentials->delete(
      acs_credential_id: "66666666-6666-6666-6666-666666666666"
    );
    ```

    **Response:**

    ```
    void
    ```
  </Tab>

  <Tab title="C#">
    **Request:**

    ```csharp theme={null}
    seam.CredentialsAcs.Delete(
      acsCredentialId: "66666666-6666-6666-6666-666666666666"
    );
    ```

    **Response:**

    ```
    void
    ```
  </Tab>
</Tabs>
