--- title: "Creating a Designer Session" slug: "creating-a-designer-session" updated: 2025-03-28T14:16:54Z published: 2025-03-28T14:16:54Z canonical: "docs.onespan.com/creating-a-designer-session" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.onespan.com/llms.txt > Use this file to discover all available pages before exploring further. # Creating a Designer Session [Java SDK](/v1/docs/creating-a-designer-session#java-sdk) [.NET SDK](/v1/docs/creating-a-designer-session#net-sdk) [REST API](/v1/docs/creating-a-designer-session#rest-api) [APEX SDK](/v1/docs/creating-a-designer-session#apex-sdk) ## Java SDK To download the full code sample see our [Code Share](https://community.onespan.com/documentation/onespan-sign/codeshare/designer-view-java-sdk) site. The Designer page enables you to view each document, to add signatures and other fields to it, and to assign permissions to documents. You can only open a designer session for a transaction with a DRAFT status. ### Creating a Designer Session To begin, use the AuthenticationTokensService to create a signer authentication token using the packageid. The following code will do this: Note that sender authentication tokens are single use and expire after 30 minutes. ```java String senderAuthenticationToken = client.getAuthenticationTokensService().createSenderAuthenticationToken(packageId); ``` Then, using the sender authentication token you just created, and the package id returned to you during package creation process, build the following URL: ```java https://sandbox.esignlive.com/auth?senderAuthenticationToken={senderToken}&target=https://sandbox.esignlive.com/a/transaction/{packageId}/designer ``` ### Results Here is an example of what you can expect to see once you have run your code. ![](https://cdn.document360.io/038f59a7-abd0-4c14-9de7-3434d28b49fd/Images/Documentation/designer_710x362.png?sv=2026-02-06&spr=https&st=2026-10-29T08%3A05%3A01Z&se=2026-10-29T09%3A05%3A01Z&sr=c&sp=r&sig=xx2dq3xCS0jZnAUvjY79bmCINWBiZ%2BOqG0ltb6Ij3Pk%3D) ## .NET SDK To download the full code sample see our [Code Share](https://community.onespan.com/documentation/onespan-sign/codeshare/designer-view-net-sdk) site. The Designer page enables you to view each document, to add signatures and other fields to it, and to assign permissions to documents. You can only open a designer session for a transaction with a DRAFT status. ### Creating a Designer Session To begin, use the AuthenticationTokensService to create a signer authentication token using the packageid. The following code will do this: Note that sender authentication tokens are single use and expire after 30 minutes. ```csharp string senderAuthenticationToken = client.AuthenticationTokenService.CreateSenderAuthenticationToken(packageId); ``` Then, using the sender authentication token you just created, and the package id returned to you during package creation process, build the following URL: ```csharp https://sandbox.esignlive.com/auth?senderAuthenticationToken={senderToken}&target=https://sandbox.esignlive.com/a/transaction/{packageId}/designer ``` ### Results Here is an example of what you can expect to see once you have run your code. ![](https://cdn.document360.io/038f59a7-abd0-4c14-9de7-3434d28b49fd/Images/Documentation/designer_710x362.png?sv=2026-02-06&spr=https&st=2026-10-29T08%3A05%3A01Z&se=2026-10-29T09%3A05%3A01Z&sr=c&sp=r&sig=xx2dq3xCS0jZnAUvjY79bmCINWBiZ%2BOqG0ltb6Ij3Pk%3D) ## REST API To download the full code sample see our [Code Share](https://community.onespan.com/documentation/onespan-sign/codeshare/designer-view-rest-api) site. The Designer page enables you to view each document, to add signatures and other fields to it, and to assign permissions to documents. You can only open a designer session for a transaction with a DRAFT status. The first step is to create a sender authentication token. The following code will do this: #### HTTP Request ```http POST /api/authenticationTokens/sender ``` #### HTTP Headers ```http Accept: application/json Content-Type: application/json Authorization: Basic api_key ``` #### Request Payload ```http {  "packageId": "e937fc75-3c3b-4506-b270-cc7e43f4cf78" } ``` #### Response Payload ```json {   "value": "MjY0MjQ4MzgtMTJlOS00MzhjLTgzODMtMzJmMGNiZTg3ODBl" } ``` Then, you will need to parse the response in order to retrieve the sender authentication token. Note that sender authentication tokens are single use and will expire after 30 minutes. Using the authentication token you just created and the package id returned to you during package creation, build the following URL: ```plaintext https://sandbox.esignlive.com/auth?senderAuthenticationToken={senderToken}&target=https://sandbox.esignlive.com/a/transaction/{packageId}/designer ``` ### Results Here is an example of what you can expect to see once you have run your code. ![](https://cdn.document360.io/038f59a7-abd0-4c14-9de7-3434d28b49fd/Images/Documentation/designer_710x362.png?sv=2026-02-06&spr=https&st=2026-10-29T08%3A05%3A01Z&se=2026-10-29T09%3A05%3A01Z&sr=c&sp=r&sig=xx2dq3xCS0jZnAUvjY79bmCINWBiZ%2BOqG0ltb6Ij3Pk%3D) ## APEX SDK To download the full code sample see our [Code Share](https://community.onespan.com/documentation/onespan-sign/codeshare/designer-view-apex-sdk/) site. The Designer page enables you to view each document, to add signatures and other fields to it, and to assign permissions to documents. You can only open a designer session for a transaction with a DRAFT status. To begin, create a sender authentication token using the following encapsulated function: Note that sender authentication tokens are single use and expire after 30 minutes. ```plaintext public String createSenderAuthenticationToken(String packageId) ``` Then, using the sender authentication token you just created, and the package id returned to you during package creation process, build the following URL: ```plaintext public String buildRedirectToDesignerForUserAuthenticationTokenNew(String senderAuthenticationToken, String packageId) ``` ### Results Here is an example of what you can expect to see once you have run your code. ![](https://cdn.document360.io/038f59a7-abd0-4c14-9de7-3434d28b49fd/Images/Documentation/designer_710x362.png?sv=2026-02-06&spr=https&st=2026-10-29T08%3A05%3A01Z&se=2026-10-29T09%3A05%3A01Z&sr=c&sp=r&sig=xx2dq3xCS0jZnAUvjY79bmCINWBiZ%2BOqG0ltb6Ij3Pk%3D)