> You are reading the Docusign Developer Documentation. For clean Markdown of any page, append .md to the page URL.
>
> Documentation indexes by section:
> - APIs and SDKs: https://docusign.docs.buildwithfern.com/docs/llms.txt
> - Platform 101: https://docusign.docs.buildwithfern.com/platform/llms.txt
> - Extension Apps: https://docusign.docs.buildwithfern.com/extension-apps/llms.txt
> - Docusign CLI: https://docusign.docs.buildwithfern.com/docusign-cli/llms.txt
>
> Authentication (OAuth, JWT Grant, M2M): https://docusign.docs.buildwithfern.com/platform/auth
> Webhooks and Connect: https://docusign.docs.buildwithfern.com/platform/webhooks
>
> OpenAPI specifications: https://docusign.docs.buildwithfern.com/openapi.json
> MCP server: https://docusign.docs.buildwithfern.com/_mcp/server

# GetAuthenticationToken

## GetAuthenticationToken

This methods can be used to get a onetime use URL with an authentication token to launch the Docusign member system.

Click here for [Rules and Exceptions](/docs/esign-soap-api/reference/embedding-group/rules-and-exceptions-for-getauthenticationtoken) for this method.

**`C#`**

```csharp title="C#"
// To take advantage of the optional navigation to an envelope,
// create and send envelope as shown in linked code
DocuSignWeb.EnvelopeStatus status = <create and send envelope > ;
// Now, call the function with the envelope ID of the envelope
// to which you wish to navigate
String token = _apiClient.GetAuthenticationToken(status.EnvelopeID);
// Display token
Console.WriteLine("Token retrieved is {0}", token);
```

**`PHP`**

```php title="PHP"
// Create and send envelope as shown in linked code
$result = $api->CreateAndSendEnvelope($createAndSendEnvelopeparams)
$status = $result->CreateAndSendEnvelopeResult;
// Send
$getAuthenticationTokenparams = new GetAuthenticationToken();
$getAuthenticationTokenparams->GoToEnvelopeID = $status->EnvelopeID;
$response = $api->GetAuthenticationToken($getAuthenticationTokenparams);
```

### Schema

![Get authentication token](file:docs/assets/soap/GetAuthenticationToken\(2\).png)

| Name           | Schema Type | Description                                                                                                                                                         |
| -------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| GoToEnvelopeID | String      | Optional envelope ID. If provided the URL returned will send the user directly to viewing the envelope. If left blank the user will be taken to the member console. |