> For the complete documentation index, see [llms.txt](https://support.marscat.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.marscat.io/development-guide/frontend-development/api-interface/api-interface-details/level-8/registerservice.md).

# registerService

Used to register MarsApp's Self Service request. This method must be used with the `checkServiceStatus` method to verify the registration status.

{% hint style="info" %}
This method must be used together with `checkServiceStatus` to verify the registration status.
{% endhint %}

Request Parameters:

| Parameter Name | Type   | Required | Description                              |
| -------------- | ------ | -------- | ---------------------------------------- |
| serviceKey     | String | Yes      | Identifier for registering Self Service. |

Response Parameters: None

Call Example:

{% code title="example.js" %}

```javascript
let payload = {
  serviceKey: "xxxxxx"
};

let sign = {
  content: "xxxxxx",
  signature: "xxxxxx"
}; 

const response = await relayx.registerService(payload, sign);
if (response.code == 200) {
  console.log("Service registration in progress");
}
```

{% endcode %}
