# Set Up Server Role and Server Account

{% hint style="info" %}
**Functional Overview:** CoinSend's automatic withdrawal can only be submitted and approved by server-side accounts. Therefore, a server account must be created before using the automatic withdrawal feature.
{% endhint %}

1. Log in to the main account dashboard and go to the “Role management” page. Click “Add role”, then enter the role name in the “Add role” window, select “Server account Role” as the role type, and fill in the remarks field (optional). Finally, click “Submit” to complete the creation of the server-side role.

   <figure><img src="/files/SjqVM1PEnS2YgFAuVKAD" alt=""><figcaption></figcaption></figure>

2. Click the “CoinSend” Action of the server account role, then select “Yes” under “Data submission permission” to authorize the role to submit dispatch records. After clicking “Submit”, enter the <mark style="background-color:green;">**main account’s Google verification code**</mark> to apply the changes.

   <figure><img src="/files/33SnPfKoa4j4h3nE41qK" alt=""><figcaption></figcaption></figure>

3. On the “Sub-Account” page, click the “Add sub-account”.

   <figure><img src="/files/UgvMOfyr9HbYKRNmJxtC" alt=""><figcaption></figcaption></figure>

4. Enter the sub-account name and select “Server account” as the Account Type, and choose the required role. Then click “Submit” to complete the setup.\
   **Note: Provide the server account name to your technical team so they may include it in the "submitAccount" parameter required for automatic withdrawal.**

   <figure><img src="/files/U0quwZshHkSRVyrNhfkY" alt=""><figcaption></figcaption></figure>

5. On the “Sub-Account” page, click the “CoinSend” action button of the server account to enter the “Bound Coinsign device” page. Click "Add approval device" then the device name, public key of the device and <mark style="background-color:$success;">**main account’s Google Authenticator code**</mark>.

   Then click “Submit” to complete the update.\
   **Note: Please have your technical team generate an RSA public/private key pair. Enter the public key on the “Add approval device” page, and use the private key for signing automatic withdrawals.**

   <div align="left"><figure><img src="/files/TNTMU4v8FKyaVz69En16" alt=""><figcaption></figcaption></figure></div>

   \
   **Note: When entering the public key, remove the “BEGIN” and “END” lines and provide only the key content. Ensure there are no spaces or line breaks (see example below) to avoid verification failures due to incorrect formatting.**

   <figure><img src="/files/CuUUu3OYn31bki7uPAcy" alt=""><figcaption></figcaption></figure>

6. After adding the approval device for the server account, **provide its device UUID to your technical team so they may include it in the reviewUuid and approveUuid parameters required for automatic withdrawals.**

   <figure><img src="/files/1stLIJYMLgy5O4bqsCG7" alt=""><figcaption></figcaption></figure>

7. This step will grant the server account data approval (first-level approval) and execution approval (second-level approval) permissions.

   In the CoinSend dashboard, go to the “CoinSend client” page and click the “Authorize” action button for the desired client. Add the server account under both “Data approval” and “Execution approval,” then click “Submit.” Complete the authorization by scanning the QR code with the CoinSign app or signing via the CoinSign browser extension (you will need to enter the <mark style="background-color:blue;">**CoinSend client password**</mark> and <mark style="background-color:blue;">**CoinSend Google Authenticator code**</mark>).

   <figure><img src="/files/eT29z0mQyLtbU7j3ft5d" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://coinsdo.gitbook.io/docs/coinsend/how-to/set-up-server-role-and-server-account.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
