# Create a Candidate via Form

<mark style="color:green;">`POST`</mark> `{{baseurl}}/v2/api/addresses/candidates`

#### Headers

| Name                                    | Type   | Description      |
| --------------------------------------- | ------ | ---------------- |
| token<mark style="color:red;">\*</mark> | String | API secret token |

#### Request Body

| Name                                        | Type   | Description                |
| ------------------------------------------- | ------ | -------------------------- |
| firstName<mark style="color:red;">\*</mark> | String | first name of candidate    |
| middleName                                  | String | middle name of candidate   |
| lastName<mark style="color:red;">\*</mark>  | String | last name of candidate     |
| mobile<mark style="color:red;">\*</mark>    | String | mobile of candidate        |
| dateOfBirth                                 | String | date of birth of candidate |
| email                                       | String | email of candidate         |
| image<mark style="color:red;">\*</mark>     | String | candidate image URL        |

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "firstName": "John",
    "middleName": "Michael",
    "lastName": "Doe",
    "mobile": "08036xxxxxx",
    "dateOfBirth": "2000-01-01",
    "email": "testemail@gmail.com",
    "image": "https://cdn.youverify.co/1655466566309-lLSfNTlhElMTtbXW-QE-q.jpg"
}
```

{% endtab %}
{% endtabs %}

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

```json
HTTP/1.1 201 CREATED
{
            "success": true,
            "statusCode": 201,
            "message": "Candidate created successfully!",
            "data": {
                "firstName": "John",
                "middleName": "Michael",
                "lastName": "Doe",
                "dateOfBirth": "2000-01-01",
                "photo": null,
                "email": "testemail@gmail.com",
                "mobile": "08036xxxxxx",
                "idNumber": null,
                "type": "form",
                "medium": "form",
                "businessId": "615c2deb203b96532838418b",
                "createdAt": "2021-11-12T11:44:29.335Z",
                "lastModifiedAt": "2021-11-12T11:44:29.335Z",
                "_createdAt": "2021-11-12T12:44:2929+01:00",
                "_lastModifiedAt": "2021-11-12T12:44:2929+01:00",
                "id": "618e539d540fb2e1d076427a"
            },
            "links": []
        }
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.youverify.co/know-your-business-services-kyb/country-specific-kyb-services/nigeria/address-verification-services-for-businesses/create-a-candidate/create-a-candidate-via-form.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
