---
updatedAt: 2025-11-11T21:42:22.000Z
agentTools:
  projectIndex: https://domains.opensrs.guide/llms.txt
---

# create_token

Creates a SiteLock account so that users can log in and manage the Trust Service product. To use this command, the order cannot be in a pending state.

> 📘 Note
>
> The resulting URL is valid for only a limited period of time that may be as short as five minutes.

## Request parameters

#### Standard request parameters

* **action** = create\_token
* **object** = trust\_service

### Request attributes

Parameters within the **attributes** associative array are described below:

| Parameter   | Obligation                               | Definition/Value                   |
| :---------- | :--------------------------------------- | :--------------------------------- |
| order\_id   | Required if product\_id is not submitted | The SSL service order ID number.   |
| product\_id | Required if order\_id is not submitted   | The SSL service product ID number. |

***

## Response parameters

#### Standard response parameters

* **action** = reply
* **object** = trust\_service
* **is\_success** = Boolean indicating success or failure of the request.
* **response\_code** = Response code indicating outcome of the request.
* **response\_text** = Message describing the outcome of the request.

### Response attributes

If the request is successful, the **attributes** associative array may include the following:

| Parameter  | Obligation      | Definition/Value                                                  |
| :--------- | :-------------- | :---------------------------------------------------------------- |
| login\_url | Always returned | The URL where the user can log in to manage the SiteLock product. |

***

## Example

```xml Request
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<!DOCTYPE OPS_envelope SYSTEM 'ops.dtd'>
<OPS_envelope>
    <header>
        <version>0.9</version>
    </header>
    <body>
        <data_block>
            <dt_assoc>
                <item key="protocol">XCP</item>
                <item key="action">create_token</item>
                <item key="object">trust_service</item>
                <item key="attributes">
                    <dt_assoc>
                        <item key="order_id">50094</item>
                    </dt_assoc>
                </item>
            </dt_assoc>
        </data_block>
    </body>
</OPS_envelope>
```
```xml Response
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<!DOCTYPE OPS_envelope SYSTEM 'ops.dtd'>
<OPS_envelope>
    <header>
        <version>0.9</version>
    </header>
    <body>
        <data_block>
            <dt_assoc>
                <item key="protocol">XCP</item>
                <item key="action">REPLY</item>
                <item key="object">TRUST_SERVICE</item>
                <item key="is_success">1</item>
                <item key="response_text">Command completed successfully.</item>
                <item key="response_code">200</item>
                <item key="attributes">
                    <dt_assoc>
                        <item key="login_url">https://www.sitelock.com/rlogin.php?token=ccc038d24c91a7a67d0a12f46f29a260</item>
                    </dt_assoc>
                </item>
            </dt_assoc>
        </data_block>
    </body>
</OPS_envelope>
```