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

# Get authentication code

<Note>This endpoint is only available for use with our Partner Program. You must include a valid `X-Annature-Partner` header in the request.</Note>

Generates a short-lived one-time-use code that can be used to sign in to the Annature dashboard as a specific account.

This endpoint enables software platforms to provide a seamless Single Sign-On (SSO) experience for users they manage — without needing to know or store the user’s password.

Once generated, the code can be exchanged via a special login URL:

```
https://dashboard.annature.com.au/code-exchange?code={{code}}
```

When accessed in a browser, this URL will sign the user into the dashboard using the target account, provided the code is valid and unexpired.

## Parameters

<ParamField path="id" type="string">
  The unique identifier of the account you wish to sign in as.
</ParamField>

<RequestExample>
  ```bash Endpoint theme={null}
  GET /v1/accounts/:id/auth-code
  ```
</RequestExample>

<ResponseExample>
  ```json theme={null}
  {
    "code": "f07de398c9c1422291b7698f26efb3f4",
    "expiration": "2025-05-15T10:00:00Z"
  }
  ```
</ResponseExample>
