Identities

Get identity

Retrieve an identity by its ID with the Go SDK.

GET/identities/{identity_id}

Use client.Identity.Get to fetch a single identity by its identity ID.

Call the method

identity, _, _ := client.Identity.Get(
	"idt_3b63c8da-af29-4cc3-ad38-df17d87456e6",
)
FieldTypeDescription
identityIdstringIdentity ID to retrieve.

Response

{
  "identity_id": "idt_3b63c8da-af29-4cc3-ad38-df17d87456e6",
  "identity_type": "individual",
  "first_name": "Alice",
  "last_name": "Smith",
  "email_address": "[email protected]",
  "phone_number": "+1234567890",
  "nationality": "Canadian",
  "category": "customer",
  "created_at": "2024-11-26T08:36:36.238244338Z",
  "meta_data": {
    "customer_id": "CUST123456"
  }
}

Go response (*blnkgo.IdentityResponse)

FieldTypeDescription
IdentityIdstringUnique ID for the identity.
IdentityTypeblnkgo.IdentityTypeIndividual or Organization.
FirstNamestringFirst name of the individual.
LastNamestringLast name of the individual.
EmailAddressstringEmail address.
CreatedAtstringDate and time the identity was created.
MetaDataMetaDataMetadata stored with the identity.