# 1. Start Signing Process

&#x20;1\.  Once the quick set up is completed, invoke the below API.

<mark style="color:green;">**`GET`**</mark>**` `**<mark style="color:blue;">**`http://localhost:8080/v2/signature/start`**</mark>

**Headers**

| Name         | Value               |
| ------------ | ------------------- |
| Content-Type | multipart/form-data |

**Body**

| Name   | Type | Description |
| ------ | ---- | ----------- |
| `null` | null | null        |

**Response**

{% tabs %}
{% tab title="200" %}
{% code overflow="wrap" %}

```url
{
"
https://stg-id.uaepass.ae/trustedx-authserver/oauth/hsign-as?response_type=code&client_id=sandbox_stage&redirect_uri=http%3A%2F%2Flocalhost%3A8080%2Fv2%2Fsignature%2Fsign-identity%3FcertType%3Dqualified&scope=urn:safelayer:eidas:sign:identity:use:server urn:uae:digitalid:backend_api:hash_signing&acr_values= &ui_locales=en&register_group_labelsM=qualified
"
}
```

{% endcode %}
{% endtab %}

{% tab title="400" %}

```json
{
  "error": "Invalid request"
}
```

{% endtab %}
{% endtabs %}

<figure><img src="https://4217816688-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MekZ3RZxqIxNNSkEFZ1%2Fuploads%2FLNtyZ0wOc1YDLuukgZms%2F1apicall.png?alt=media&#x26;token=5278eb93-01c6-4dbc-a526-bbeb4ba4333e" alt=""><figcaption><p><mark style="color:green;">Sample postman API request and response</mark></p></figcaption></figure>

#### Sample Curl Command

```
curl --location 'http://localhost:8080/v2/signature/start' \
--header 'Content-Type: multipart/form-data'
```

2. Invoke the URL obtained from the API response (as shown in the screenshot) in browser to obtain the sign identities and transaction id value. During this step users will be prompted to authorize and if the Application redirect URL has been configured the txId and signing Identity values will be returned as response header params. Otherwise in response body.

<figure><img src="https://4217816688-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MekZ3RZxqIxNNSkEFZ1%2Fuploads%2FdE2wAYtarDWuZKRPfbpZ%2FScreenshot%202024-07-22%20091614.png?alt=media&#x26;token=7020b36a-ad07-477d-88cf-1f1cf5554fb2" alt=""><figcaption><p> <mark style="color:green;">User authorization sample</mark></p></figcaption></figure>

<figure><img src="https://4217816688-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MekZ3RZxqIxNNSkEFZ1%2Fuploads%2FAJsGIielLKO8Dl9O4YOy%2FDocker%20Hash%20Signing%20updated%20API%202.png?alt=media&#x26;token=faca56c6-6d4f-4f77-bd72-441d673f85c0" alt=""><figcaption><p><mark style="color:green;">Sample response when application redirect URL is configured.</mark></p></figcaption></figure>

<figure><img src="https://4217816688-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MekZ3RZxqIxNNSkEFZ1%2Fuploads%2FToUvsTYmJ4bE9aziKLSe%2FScreenshot%202024-07-22%20092218.png?alt=media&#x26;token=ead2439c-647b-486f-9254-375b2d32e87d" alt=""><figcaption><p><mark style="color:green;">Sample response if application redirect URL is not configured</mark></p></figcaption></figure>

{% hint style="info" %} <mark style="color:green;">**The transaction id remains valid for 10 mins.**</mark>
{% endhint %}
