Skip to main content
POST
/
v3
/
identity
/
batch
Batch Enroll Identities
package main

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

func main() {

	url := "https://platform.uat.proveapis.com/v3/identity/batch"

	payload := strings.NewReader("{\n  \"clientRequestId\": \"71010d88-d0e7-4a24-9297-d1be6fefde81\",\n  \"items\": [\n    {\n      \"clientName\": \"\\\"Client A\\\"\",\n      \"identityId\": \"\\\"e0f78bc2-f748-4eda-9d29-d756844507fc\\\"\",\n      \"pcid\": \"\\\"12345\\\"\"\n    },\n    {\n      \"clientName\": \"\\\"Client A\\\"\",\n      \"identityId\": \"\\\"e0f78bc2-f748-4eda-9d29-d756844507fc\\\"\",\n      \"pcid\": \"\\\"12345\\\"\"\n    }\n  ]\n}")

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

	req.Header.Add("Authorization", "Bearer <token>")
	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))

}
{
  "results": [
    {
      "identityId": "e0f78bc2-f748-4eda-9d29-d756844507fc"
    },
    {
      "error": "Invalid Phone Number"
    }
  ]
}

Authorizations

Authorization
string
header
required

The access token received from the /token endpoint. Refer to the Authentication page for more details.

Body

application/json

Request body for the V3 Batch Enroll Identities API.

clientRequestId
string

A client-generated unique ID for a specific session. This can be used to identify specific requests. The format of this ID is defined by the client - Prove recommends using a GUID, but any format can be accepted. Do not include Personally Identifiable Information (PII) in this field.

Example:

"71010d88-d0e7-4a24-9297-d1be6fefde81"

items
IdentityItem represents an identity item in the CrossDomainResponse. · object[]

Response

V3BatchEnrollIdentitiesResponse

Response body for the V3 Batch Enroll Identities API.

results
Batch Enroll Identities Result Item · object[]
I