> ## Client identification
>
> Requests to this API should include a `Client-Platform` header alongside
> `Authorization`, identifying the application, tool, or model making the
> request. This is used for integration support and analytics.
>
> Use your model or tool name, for example `claude-code` or `chatgpt`.
>
> Example:
>
> ```bash
> curl https://api.salaryboxapp.com/... \
>   -H "Authorization: Api-Key <api-key>" \
>   -H "Client-Platform: claude-code"
> ```

# Add Verified Staff

POST https://api.salaryboxapp.com/v2/customer/v1/verification/new-staff/add
Content-Type: application/json

Adds a person to your company after you verified them with Verify New Staff. **Not charged:** the check was paid for in Verify New Staff. Shared rules: see [Writing data](/conventions#writing-data).

The body is the same as Add Staff, with the same rules, plus these differences:

- The `phone_number` (and `dial_code`) must have a finished verification. If there is none you get `404` with "No verification found for this phone number. Verify them first with POST /verification/new-staff." under `phone_number`. If it hasn't finished you get `400` "This phone number's verification hasn't finished. Send POST /verification/new-staff again to finish it, which isn't charged again."
- `pan`, `driving_license`, `voter_id` and `uan` left out are taken from the verification (a UAN only when its record was found, so an invalid UAN never reaches PF filings). One that you send must be the number that was verified, else `400` under that field: "This isn't the number that was verified. Send it to POST /verification/new-staff first (not charged again), or leave it out to use the verified one."
- Use the `name` and the `dob` (as `date_of_birth`) from the verification result unless you were told otherwise.
- The `201` response also has `verification`, the same object Fetch Single Staff Verification returns. Adding closes the check, and the staff member shows in Staff Verification as pending review.
- Marking them verified, settling name or date-of-birth mismatches and the verification report stay in the SalaryBox app.
- Add Staff with a phone number that has a paid verification also closes the check, but doesn't take the IDs from it. After Verify New Staff, use Add Verified Staff.
- Needs the Background Verification feature on your plan, else `403` with the plan upgrade message.


Reference: https://docs.salarybox.in/api-reference/staff-verification/verification-new-staff-add

## Authentication

- `Authorization` header (required) (prefixed with ` Api-Key   `) — Format: "Api-Key \{api-key}"

## Request

### Body (application/json)

This endpoint expects a StaffCreateRequest.

- `name` (string, required) — 2–150 characters: letters, spaces or dots; must start with a letter. Extra spaces around it are trimmed.
- `phone_number` (string, required) — Digits only, up to 15; must not already be used in the company. With `dial_code` `91`: 10 digits starting with 6, 7, 8 or 9. Other codes: 4-15 digits valid for that country (not allowed on an Indian (INR) plan).
- `dial_code` (string, optional) — Country dial code without `+`, for example `91` (the default). Must be a known country code.
- `branch_names` (list of string, optional) — Exact branch names from List Branches (not empty, no repeats). If left out, the staff member joins the main branch.
- `department_names` (list of string, optional) — Exact department names from List Departments (no repeats). Leave out or send `[]` for none.
- `employee_id` (string, optional) — Unique in the company, ignoring upper/lower case. Leave out if Auto employee ID is on.
- `job_title` (string, optional) — Up to 150 characters.
- `joining_date` (date, optional) — `YYYY-MM-DD`, between 1950-01-01 and one year from today.
- `date_of_birth` (date, optional) — `YYYY-MM-DD`; the staff member must be 16 to 100 years old.
- `email` (string, optional) — Official email address.
- `personal_email` (string, optional) — Personal email address.
- `current_address` (string, optional)
- `permanent_address` (string, optional) — Up to 500 characters.
- `gender` (enum, optional)
  - Allowed values: `Male`, `Female`, `Others`
- `blood_group` (enum, optional)
  - Allowed values: `A+`, `A-`, `B+`, `B-`, `AB+`, `AB-`, `O+`, `O-`
- `employee_type` (enum, optional)
  - Allowed values: `Full Time`, `Permanent`, `Part Time`, `Consultant`, `Temporary`, `Probation`, `Intern`, `Contract`
- `marital_status` (enum, optional)
  - Allowed values: `Married`, `Unmarried`
- `pan` (string, optional) — Format `ABCDE1234F` (upper-cased for you).
- `aadhaar` (string, optional) — 12 digits, starting with 2-9.
- `uan` (string, optional) — 12 digits, starting with 1-9.
- `pf_number` (string, optional) — Standard PF number, for example `MHBAN00000640000000125` (upper-cased for you).
- `esi_number` (string, optional) — Exactly 10 digits.
- `driving_license` (string, optional) — 2 letters then 13 digits, for example `MH1420110012345` (upper-cased for you).
- `voter_id` (string, optional) — 3 letters then 7 digits, for example `ABC1234567` (upper-cased for you).
- `bank_name` (string, optional)
- `bank_account_number` (string, optional) — 8 to 18 digits.
- `ifsc_code` (string, optional) — Format `HDFC0001234` (upper-cased for you).
- `account_holder_name` (string, optional)
- `bank_details_confirmed` (boolean, optional) — `true` confirms the bank details as the API key's user; needs the account number and IFSC code.
- `custom_fields` (map from string to string, optional) — Custom field name (exact, from List Custom Fields) mapped to a text value of 1-200 characters, for example `{"Blood Donor": "Yes"}`. Must not be empty.
- `notify_staff` (boolean, optional, default: false) — `true` sends the WhatsApp app invite (live environment only). Default `false`.

## Response

### 201

The staff member was created. `data.verification` is their verification result.

- `message` (string, required)
- `status` (boolean, required)
- `data` (NewStaffAddResponseData, required)

## Errors

### 400 Bad Request Error

Validation failed, the verification hasn't finished, or the plan's staff limit has been reached.

- `message` (string, required)
- `status` (boolean, required)
- `errors` (map from string to any, optional, nullable)

### 403 Forbidden Error

Your company has no active subscription.

- `message` (string, required)
- `status` (boolean, required)
- `errors` (map from string to any, optional, nullable)

### 404 Not Found Error

No verification found for this phone number.

- `message` (string, required)
- `status` (boolean, required)
- `errors` (map from string to any, optional, nullable)

## Types

### NewStaffAddResponseData

- `salarybox_id` (string, required) — SalaryBox ID of the new staff member.
- `is_active` (boolean, required)
- `created_on` (datetime, required)
- `verification` (StaffVerificationResult, required) — A staff member's verification result. Returned by Fetch Single Staff Verification and, as `data`, by every verification write.

### StaffVerificationResult

A staff member's verification result. Returned by Fetch Single Staff Verification and, as `data`, by every verification write.

- `salarybox_id` (string, required)
- `name` (string, required)
- `verification_status` (enum, required) — `not_verified` (never checked, or the check hasn't finished), `pending_review` (checked, waiting for an admin) or `verified` (an admin marked them verified in the app).
  - Allowed values: `not_verified`, `pending_review`, `verified`
- `ids` (list of StaffVerificationId, required) — One entry per government ID checked. Empty before the first check.
- `issues` (list of StaffVerificationIssue, required) — Problems for an admin to review. Empty before the first check.
- `warning` (enum, optional, nullable) — `null`, `issues_found`, `additional_details_needed`, or `details_changed` (their details changed after they were verified).
  - Allowed values: `issues_found`, `additional_details_needed`, `details_changed`
- `verified_by` (string, optional, nullable) — Name of the admin who marked them verified, when verified.
- `verified_on` (datetime, optional, nullable) — ISO timestamp of when they were marked verified.
- `remarks` (string, optional)
- `already_paid` (boolean, optional) — Only present when `verification_status` is `not_verified` with no check yet. `true` when a Verification Package bought in the Android app already covers the check.
- `next_step` (string, optional, nullable) — Verify Staff only. When neither the phone number nor the profile gave a government ID, is "No government ID was found from this staff member's phone number or profile. Continue verification in the SalaryBox app." Otherwise `null`.

### StaffVerificationId

- `id_type` (enum, optional)
  - Allowed values: `pan`, `driving_license`, `voter_id`, `uan`
- `number` (string, optional) — Masked: all but the last 4 characters are `X`.
- `status` (enum, optional) — `valid`, `invalid` (government records say the ID is wrong) or `not_fetched` (the lookup couldn't be completed).
  - Allowed values: `valid`, `invalid`, `not_fetched`
- `retry_available` (boolean, optional)
- `name` (string, optional, nullable) — Name on the ID, when the lookup returned one.
- `dob` (date, optional, nullable) — Date of birth on the ID, when the lookup returned one.

### StaffVerificationIssue

- `type` (enum, optional) — `invalid_id`; `name_mismatch` / `dob_mismatch` (the IDs disagree); `profile_name_mismatch` / `profile_dob_mismatch` (the profile differs from the IDs); `excel_name_mismatch` / `excel_dob_mismatch` / `excel_pan_mismatch` / `excel_uan_mismatch` (a bulk upload row differs).
  - Allowed values: `invalid_id`, `name_mismatch`, `dob_mismatch`, `profile_name_mismatch`, `profile_dob_mismatch`, `excel_name_mismatch`, `excel_dob_mismatch`, `excel_pan_mismatch`, `excel_uan_mismatch`
- `field` (string, optional)
- `id_types` (list of string, optional)
- `values` (map from string to string, optional) — Maps each source to what it shows (ID numbers masked).
- `resolved` (boolean, optional) — `true` once an admin settled it in the app.

## Examples

**Request**

```json
{
  "name": "Ravi Kumar",
  "phone_number": "9876549999",
  "date_of_birth": "1994-06-12"
}
```

**Response**

```json
{
  "message": "Staff added successfully",
  "status": true,
  "data": {
    "salarybox_id": "SB1042",
    "is_active": true,
    "created_on": "2026-11-10T09:30:00Z",
    "verification": {
      "salarybox_id": "SB1042",
      "name": "Ravi Kumar",
      "verification_status": "pending_review",
      "ids": [
        {
          "id_type": "pan",
          "number": "XXXXXX234F",
          "status": "valid",
          "retry_available": false,
          "name": "RAVI KUMAR",
          "dob": "1994-06-12"
        }
      ],
      "issues": [],
      "warning": null,
      "verified_by": null,
      "verified_on": null,
      "remarks": ""
    }
  }
}
```

**SDK Code**

```python Example
import requests

url = "https://api.salaryboxapp.com/v2/customer/v1/verification/new-staff/add"

payload = {
    "name": "Ravi Kumar",
    "phone_number": "9876549999",
    "date_of_birth": "1994-06-12"
}
headers = {
    "Authorization": "Api-Key  <apiKey>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript Example
const url = 'https://api.salaryboxapp.com/v2/customer/v1/verification/new-staff/add';
const options = {
  method: 'POST',
  headers: {Authorization: 'Api-Key  <apiKey>', 'Content-Type': 'application/json'},
  body: '{"name":"Ravi Kumar","phone_number":"9876549999","date_of_birth":"1994-06-12"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Example
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.salaryboxapp.com/v2/customer/v1/verification/new-staff/add"

	payload := strings.NewReader("{\n  \"name\": \"Ravi Kumar\",\n  \"phone_number\": \"9876549999\",\n  \"date_of_birth\": \"1994-06-12\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Api-Key  <apiKey>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Example
require 'uri'
require 'net/http'

url = URI("https://api.salaryboxapp.com/v2/customer/v1/verification/new-staff/add")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Api-Key  <apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"name\": \"Ravi Kumar\",\n  \"phone_number\": \"9876549999\",\n  \"date_of_birth\": \"1994-06-12\"\n}"

response = http.request(request)
puts response.read_body
```

```java Example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.salaryboxapp.com/v2/customer/v1/verification/new-staff/add")
  .header("Authorization", "Api-Key  <apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"name\": \"Ravi Kumar\",\n  \"phone_number\": \"9876549999\",\n  \"date_of_birth\": \"1994-06-12\"\n}")
  .asString();
```

```php Example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.salaryboxapp.com/v2/customer/v1/verification/new-staff/add', [
  'body' => '{
  "name": "Ravi Kumar",
  "phone_number": "9876549999",
  "date_of_birth": "1994-06-12"
}',
  'headers' => [
    'Authorization' => 'Api-Key  <apiKey>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp Example
using RestSharp;

var client = new RestClient("https://api.salaryboxapp.com/v2/customer/v1/verification/new-staff/add");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Api-Key  <apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"name\": \"Ravi Kumar\",\n  \"phone_number\": \"9876549999\",\n  \"date_of_birth\": \"1994-06-12\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Example
import Foundation

let headers = [
  "Authorization": "Api-Key  <apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "name": "Ravi Kumar",
  "phone_number": "9876549999",
  "date_of_birth": "1994-06-12"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.salaryboxapp.com/v2/customer/v1/verification/new-staff/add")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```