# Document Sign Otp

## Request to file sign

<mark style="color:green;">`POST`</mark> `https://biometrid.com/api/processes/:id/step`

This endpoint allows you to sign a file with otp. This action may take some time to complete.

#### Path Parameters

| Name | Type   | Description              |
| ---- | ------ | ------------------------ |
| id   | string | ID of the process to get |

#### Headers

| Name            | Type   | Description                  |
| --------------- | ------ | ---------------------------- |
| Accept-Language | string | en (default), pt             |
| Content-Type    | string | multipart/form-data          |
| Authorization   | string | Authentication account token |

#### Request Body

| Name        | Type   | Description                               |
| ----------- | ------ | ----------------------------------------- |
| phoneNumber | object | Phone with country (see below an example) |
| files       | object | Files array (see below an example)        |

{% tabs %}
{% tab title="404 " %}

```javascript
{
  "data": {},
  "meta": {
    "message": "Process not found",
    "code": 4013
  },
  "status": false
}
```

{% endtab %}
{% endtabs %}

```bash
{
  "phoneNumber": {
		"country": "PT",
		"number": "900000000"
	}, // only required when the step field payload is empty
	"files": [{
		"fileId": "string"
	}]
}
```

## Sign file

<mark style="color:green;">`POST`</mark> `https://biometrid.com/api/processes/:id/step`

This endpoint allows you to sign a file. This action may take some time to complete.

#### Path Parameters

| Name | Type   | Description              |
| ---- | ------ | ------------------------ |
| id   | string | ID of the process to get |

#### Headers

| Name            | Type   | Description                 |
| --------------- | ------ | --------------------------- |
| Accept-Language | string | en (default), pt            |
| Content-Type    | string | multipart/form-data         |
| Authorization   | string | Authentication client token |

#### Request Body

| Name        | Type   | Description                               |
| ----------- | ------ | ----------------------------------------- |
| phoneNumber | object | Phone with country (see below an example) |
| files       | object | Files array (see below an example)        |

{% tabs %}
{% tab title="404 " %}

```javascript
{
  "data": {},
  "meta": {
    "message": "Process not found",
    "code": 4013
  },
  "status": false
}
```

{% endtab %}
{% endtabs %}

```bash
{
  "phoneNumber": {
		"country": "PT",
		"number": "900000000"
	}, // only required when the step field payload is empty
	"files": [{
		"fileId": "string",
		"code": "5508"
	}]
}
```
