Contact Info

Fetch a specific contact's information in an inabit organization.

Fetch all of a Contact's Information

Fetch a specific contact's data in an inabit organization, according to the contact's ID.

Using this endpoint users can search specific contacts using their ID (the call must be per contact ID).

The response contains the contact’s information including: contact name, ID, address, blockchain, blockchain code and more.

query Contact($where: ContactWhereUniqueInput!) {
  contact(where: $where) {
    id
    contactCryptoAccounts {
      address
      blockchainProtocol {
        code
      }
      lastTransferRequestDate
      name
    }
    name
  }
}

Headers

NameValue

Content-Type

application/json

Authorization

Bearer <token>

Body (ContactWhereUniqueInput object)

NameTypeDescription

id*

String

Contact ID

Example body:

{
  "where": {
    "id": "cljzumgy0000gk603zl8u9xx2"
  }
}

Response

Return values:

NameTypeDescription

id

String

Contact ID

address (contactCryptoAccounts)

String

Blockchain Address (per contactCryptoAccount given)

code (blockchainProtocol)

String

Blockchain Code

lastTransferRequestDate

Datetime

Last Transfer Request Date

name (contactCryptoAccounts)

String

Name (of the contact's contactCryptoAccount)

name

String

Contact Name

{
	"data": {
		"contact": {
			"id": "cljzumgy0000gk603zl8u9xx1",
			"contactCryptoAccounts": [
				{
					"address": "0xbd78e1bdd7fca39ac7a4c8cdeb89fc2bfcc57a0a",
					"blockchainProtocol": {
						"code": "account"
					},
					"lastTransferRequestDate": null,
					"name": "Credit Card Account"
				}
			],
			"name": "Georgia Hermann"
		}
	}
}

Try it out!

Last updated