> ## Documentation Index
> Fetch the complete documentation index at: https://platform.atlan.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Service accounts

> Every published service accounts operation, generated from the contract.

6 operations on `client.service_accounts`.

Path parameters come first, positionally; the request body is last, as a plain
object. Method names are `snake_case` in Python and `camelCase` in
TypeScript, and resource names follow the same rule.

<CodeGroup>
  ```python Python theme={null}
  result = client.service_accounts.create(body)
  ```

  ```typescript TypeScript theme={null}
  const result = await client.serviceAccounts.create(body);
  ```
</CodeGroup>

## Operations

| Call                                                      | Route                                                      | Does                                              |
| --------------------------------------------------------- | ---------------------------------------------------------- | ------------------------------------------------- |
| `client.service_accounts.create(body)`                    | `POST /registry/v1/service-accounts`                       | Create a machine identity                         |
| `client.service_accounts.get(principal_id)`               | `GET /registry/v1/service-accounts/{principal_id}`         | Get a machine identity                            |
| `client.service_accounts.list()`                          | `GET /registry/v1/service-accounts`                        | List machine identities                           |
| `client.service_accounts.revoke(principal_id)`            | `DELETE /registry/v1/service-accounts/{principal_id}`      | Revoke a machine identity                         |
| `client.service_accounts.revoke_credential(principal_id)` | `POST /registry/v1/service-accounts/{principal_id}/revoke` | Revoke this identity's credential at the provider |
| `client.service_accounts.rotate_credential(principal_id)` | `POST /registry/v1/service-accounts/{principal_id}/rotate` | Rotate this identity's credential                 |

## Related

<CardGroup cols={2}>
  <Card title="How the client is organised" icon="list" href="/sdk/operations">
    Resources, call shapes, and errors.
  </Card>

  <Card title="Errors and retries" icon="triangle-exclamation" href="/developers/errors-and-retries">
    What the SDK raises, and which calls are safe to retry.
  </Card>
</CardGroup>
