> For a complete page index, fetch https://docs.transak.com/llms.txt # Identity Details POST https://api-gateway-stg.transak.com/kyc/v2/reliance/identity-details Content-Type: application/json Submits the user's **personal details**, **address**, **purpose of usage**, and optional **tax identifier (TIN)** data to initialize the KYC Reliance flow. **This request must always be called first** in the KYC Reliance sequence — it initializes the KYC request on Transak's side. Reference: https://docs.transak.com/api/whitelabel/kyc-reliance-api/kyc-reliance-identity-details ## Request ### Headers - `x-user-ip` (string, required) — End user's originating IP. More details [here](/guides/mandatory-security-changes#user-ip-header-in-apis) - `x-api-key` (string, required) — Partner API Key present in Transak Dashboard. - `x-access-token` (string, optional) — Your Partner Access Token. Please refer [here](/guides/how-to-create-partner-access-token) for a tutorial on generating your access token. Note: This is applicable only for [Auth Reliance Flows](/features/auth-reliance) - `x-user-identifier` (string, optional) — our authenticated user Email Id address. Note: This is applicable only for [Auth Reliance Flows](/features/auth-reliance) - `authorization` (string, optional) — Authorization token is the accessToken received from the API -` api/v2/auth/verify` Note: This is not applicable for [Auth Reliance Flows](/features/auth-reliance) ### Body (application/json) This endpoint expects an IdentityDetailsRequest. - `personalDetails` (PersonalDetails, required) - `addressDetails` (AddressDetails, required) - `purposeList` (list of string, required) — Supported purpose strings (same contract as existing Whitelabel purpose-of-usage values). Examples include `"Buying/selling crypto for investments"`, `"Buying NFTs"`, and `"Buying crypto to use a web3 protocol"`. - `tinDetails` (TinDetails, optional) — Tax identification details. **Optional depending on country/regulatory requirements** — required when TIN collection applies for the user's jurisdiction. ## Response ### 200 Success — KYC request initialized - `data` (KycRelianceSuccessResponseData, required) ## Errors ### 400 Bad Request Error Bad Request — validation or processing failure - `Kyc-reliance-identity-detailsRequestBadRequestError` ### 401 Unauthorized Error Unauthorized — invalid token or user not onboarded - `error` (ErrorEnvelopeError, required) ### 403 Forbidden Error Forbidden — partner not allowed to use KYC Reliance v2 - `error` (ErrorEnvelopeError, required) ## Types ### PersonalDetails - `firstName` (string, required) — First name of the user. - `lastName` (string, required) — Last name of the user. - `dob` (date, required) — Date of birth in `YYYY-MM-DD` format. - `mobileNumber` (string, required) — Mobile number of the user (E.164 or locale-specific format as accepted by the API). ### AddressDetails - `addressLine1` (string, required) - `state` (string, required) - `city` (string, required) - `countryCode` (string, required) — Country code (e.g. ISO code as required by your integration contract). - `postCode` (string, required) - `addressLine2` (string, optional) — Optional second address line. ### TinDetails - `documentType` (string, optional) — Document type for the tax identifier. - `documentNumber` (string, optional) — Tax identification number (e.g. US SSN), format as applicable. ### KycRelianceSuccessResponseData - `status` (string, required) — Step or flow status (e.g. `INITIALIZED` after identity or document steps, `SUBMITTED` after biometrics, or terminal outcomes such as `DONE` / `FAILED` as returned by the API). - `kycType` (string, required) — KYC flow type returned for the initialized request. ### ErrorEnvelope - `error` (ErrorEnvelopeError, required) ### KycRelianceFlatError - `statusCode` (integer, required) - `errorCode` (integer, required) - `message` (string, required) ### ErrorEnvelopeError - `statusCode` (integer, required) - `message` (string, required) - `error` (string, optional) — HTTP error title (e.g. `Bad Request`). - `errorCode` (integer, optional) ## Examples **Request** ```json { "personalDetails": { "firstName": "", "lastName": "", "dob": "", "mobileNumber": "" }, "addressDetails": { "addressLine1": "", "state": "", "city": "", "countryCode": "", "postCode": "", "addressLine2": "" }, "purposeList": [ "Buying/selling crypto for investments", "Buying NFTs", "Buying crypto to use a web3 protocol" ], "tinDetails": { "documentType": "", "documentNumber": "" } } ``` **Response** ```json { "data": { "status": "INITIALIZED", "kycType": "STANDARD" } } ``` **SDK Code** ```python Submitted Identity Details import requests url = "https://api-gateway-stg.transak.com/kyc/v2/reliance/identity-details" payload = { "personalDetails": { "firstName": "", "lastName": "", "dob": "", "mobileNumber": "" }, "addressDetails": { "addressLine1": "", "state": "", "city": "", "countryCode": "", "postCode": "", "addressLine2": "" }, "purposeList": ["Buying/selling crypto for investments", "Buying NFTs", "Buying crypto to use a web3 protocol"], "tinDetails": { "documentType": "", "documentNumber": "" } } headers = { "x-api-key": "", "x-user-ip": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Submitted Identity Details const url = 'https://api-gateway-stg.transak.com/kyc/v2/reliance/identity-details'; const options = { method: 'POST', headers: {'x-api-key': '', 'x-user-ip': '', 'Content-Type': 'application/json'}, body: '{"personalDetails":{"firstName":"","lastName":"","dob":"","mobileNumber":""},"addressDetails":{"addressLine1":"","state":"","city":"","countryCode":"","postCode":"","addressLine2":""},"purposeList":["Buying/selling crypto for investments","Buying NFTs","Buying crypto to use a web3 protocol"],"tinDetails":{"documentType":"","documentNumber":""}}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Submitted Identity Details package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api-gateway-stg.transak.com/kyc/v2/reliance/identity-details" payload := strings.NewReader("{\n \"personalDetails\": {\n \"firstName\": \"\",\n \"lastName\": \"\",\n \"dob\": \"\",\n \"mobileNumber\": \"\"\n },\n \"addressDetails\": {\n \"addressLine1\": \"\",\n \"state\": \"\",\n \"city\": \"\",\n \"countryCode\": \"\",\n \"postCode\": \"\",\n \"addressLine2\": \"\"\n },\n \"purposeList\": [\n \"Buying/selling crypto for investments\",\n \"Buying NFTs\",\n \"Buying crypto to use a web3 protocol\"\n ],\n \"tinDetails\": {\n \"documentType\": \"\",\n \"documentNumber\": \"\"\n }\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") req.Header.Add("x-user-ip", "") 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 Submitted Identity Details require 'uri' require 'net/http' url = URI("https://api-gateway-stg.transak.com/kyc/v2/reliance/identity-details") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["x-user-ip"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"personalDetails\": {\n \"firstName\": \"\",\n \"lastName\": \"\",\n \"dob\": \"\",\n \"mobileNumber\": \"\"\n },\n \"addressDetails\": {\n \"addressLine1\": \"\",\n \"state\": \"\",\n \"city\": \"\",\n \"countryCode\": \"\",\n \"postCode\": \"\",\n \"addressLine2\": \"\"\n },\n \"purposeList\": [\n \"Buying/selling crypto for investments\",\n \"Buying NFTs\",\n \"Buying crypto to use a web3 protocol\"\n ],\n \"tinDetails\": {\n \"documentType\": \"\",\n \"documentNumber\": \"\"\n }\n}" response = http.request(request) puts response.read_body ``` ```java Submitted Identity Details import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api-gateway-stg.transak.com/kyc/v2/reliance/identity-details") .header("x-api-key", "") .header("x-user-ip", "") .header("Content-Type", "application/json") .body("{\n \"personalDetails\": {\n \"firstName\": \"\",\n \"lastName\": \"\",\n \"dob\": \"\",\n \"mobileNumber\": \"\"\n },\n \"addressDetails\": {\n \"addressLine1\": \"\",\n \"state\": \"\",\n \"city\": \"\",\n \"countryCode\": \"\",\n \"postCode\": \"\",\n \"addressLine2\": \"\"\n },\n \"purposeList\": [\n \"Buying/selling crypto for investments\",\n \"Buying NFTs\",\n \"Buying crypto to use a web3 protocol\"\n ],\n \"tinDetails\": {\n \"documentType\": \"\",\n \"documentNumber\": \"\"\n }\n}") .asString(); ``` ```php Submitted Identity Details request('POST', 'https://api-gateway-stg.transak.com/kyc/v2/reliance/identity-details', [ 'body' => '{ "personalDetails": { "firstName": "", "lastName": "", "dob": "", "mobileNumber": "" }, "addressDetails": { "addressLine1": "", "state": "", "city": "", "countryCode": "", "postCode": "", "addressLine2": "" }, "purposeList": [ "Buying/selling crypto for investments", "Buying NFTs", "Buying crypto to use a web3 protocol" ], "tinDetails": { "documentType": "", "documentNumber": "" } }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', 'x-user-ip' => '', ], ]); echo $response->getBody(); ``` ```csharp Submitted Identity Details using RestSharp; var client = new RestClient("https://api-gateway-stg.transak.com/kyc/v2/reliance/identity-details"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("x-user-ip", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"personalDetails\": {\n \"firstName\": \"\",\n \"lastName\": \"\",\n \"dob\": \"\",\n \"mobileNumber\": \"\"\n },\n \"addressDetails\": {\n \"addressLine1\": \"\",\n \"state\": \"\",\n \"city\": \"\",\n \"countryCode\": \"\",\n \"postCode\": \"\",\n \"addressLine2\": \"\"\n },\n \"purposeList\": [\n \"Buying/selling crypto for investments\",\n \"Buying NFTs\",\n \"Buying crypto to use a web3 protocol\"\n ],\n \"tinDetails\": {\n \"documentType\": \"\",\n \"documentNumber\": \"\"\n }\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Submitted Identity Details import Foundation let headers = [ "x-api-key": "", "x-user-ip": "", "Content-Type": "application/json" ] let parameters = [ "personalDetails": [ "firstName": "", "lastName": "", "dob": "", "mobileNumber": "" ], "addressDetails": [ "addressLine1": "", "state": "", "city": "", "countryCode": "", "postCode": "", "addressLine2": "" ], "purposeList": ["Buying/selling crypto for investments", "Buying NFTs", "Buying crypto to use a web3 protocol"], "tinDetails": [ "documentType": "", "documentNumber": "" ] ] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api-gateway-stg.transak.com/kyc/v2/reliance/identity-details")! 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() ```