---
title: "Task Object"
url: "https://help.internetx.com/en/api/core-task-object/"
lang: "en"
section: "API reference — API reference (XML/JSON)"
breadcrumb: "API documentation (JSON/XML) > Objects > XML specific objects"
updated: "2023-10-25"
---

# Task Object

## Description

The _task_ object defines the structure of a task which is sent within a request to the XML API.

## Structure

| Key | Occurs | Type | Format | Description |
| --- | --- | --- | --- | --- |
| code | 0 - 1 | string |  | The code of the request type |
| reply\_to | 0 - 1 | string |  | The subuser |
| email\_confirmation | 0 - 1 | string |  | The successful receipt of the request is confirmed by way of email. |
| ctid | 0 - 1 | string |  | The client transaction ID |
| execdate | 0 - 1 | date |  | Execution timestamp. Format: yyyy-MM-dd HH:mm:ss |
| demo | 0 - 1 | boolean |  | Demo mode<br>• 1 = Demo mode active<br>• 0 = Demo mode inactive |
| certificate | 0 - n | object | [Certificate](/en/api/core-certificate-object/) | The certificate object for requests |
| contact | 0 - n | object | [Contact](/en/api/core-contact-object-ssl/) | The contact object for requests |

## XML Example

```
<task>
    <code>400101</code>
    <reply_to>jon.doe@example.com</reply_to>
	<email_confirmation>jon.doe@example.com</email_confirmation>
	<ctid>ABC123456</ctid>
	<execdate>2019-01-01 09:00:00</execdate>
	<demo>1</demo>
	<certificate>
	...
	</certificate>
</task>
```
