Chips

Chips

A Chip is a reference to an IYK-managed NFC chip.

Edit a chip

Edit the properties of chips belonging to your team.

Request

PATCH /chips

Headers

HeaderDescriptionRequired
x-iyk-api-keyAPI key for userYes

Body

FieldDescriptionType
tagUIDsUniversalIDs of the tags to editstring[]
updatesObject of edits you want to apply across all chipsUpdates (see below)

Updates Properties

FieldDescriptionType
redirectUrlURL to redirect to when the chip is tapped. If set to null, chip returns to default behavior. If set to a Coinbase Wallet Deeplink (opens in a new tab), the iykRef will be properly encoded into the cb_url query parameter.string | null

Example Body

{
  "tagUIDs": ["1111111111144444"],
  "updates": {
    "redirectUrl": "https://iyk.app/t/c/v1"
  }
}

The above chip will now redirect to https://iyk.app/t/c/v1?iykRef=EXAMPLE when tapped.

Response

{
  "success": true
}

Find a chip via URL params

Get the UID of a chip from its URL parameters, and validate the link.

Request

GET /chips/find

Query Params

For NTAG 424:
FieldDescriptionType
eEncrypted payload from chip URLstring
cEncrypted payload from chip URLstring
dEncrypted payload from chip URLnumber
For KONG/ARX HaLo:

To be updated, as it is dependent on the version of the chip.

Response

{
  "uid": "1148192980366208",
  "isValidTap": true,
  "linkedToken": {
    "contractAddress": "0x7455c52486d32a1d8b3d48d2945ec7db25dce722",
    "chainId": 137,
    "tokenId": "51"
  },
  "otp": {
    "code": "123456",
    "expiresAt": "2023-06-30T00:00:00Z"
  },
  "poapEvent": {
    "id": 10,
    "poapEventId": 100,
    "remainingCodesCount": 5
  }
}
FieldDescriptionType
uidA unique identifier for the chip.string
isValidTapA boolean indicating whether the tap is valid or not.boolean
linkedTokenDetails of the linked token, if applicable.object
linkedToken.contractAddressThe contract address of the linked token.string
linkedToken.chainIdThe chain ID of the linked token.number
linkedToken.tokenIdThe token ID of the linked token.string
otpDetails about the OTP code for authenticating claims, if applicable.object
otp.codeThe OTP code.string
otp.expiresAtThe expiration time of the OTP code.string
poapEventDetails of the linked POAP event, if applicable.object
poapEvent.idThe ID of the POAP event.number
poapEvent.poapEventIdThe POAP event ID.number
poapEvent.remainingCodesCountThe remaining number of codes for the POAP event.number

Get Chips by Chip Group

Retrieve a list of chips associated with a specific chip group in your workspace.

Request

GET /chips

Headers

HeaderDescriptionRequired
x-iyk-api-keyAPI key for userYes

Query Parameters

FieldTypeDescriptionRequired
chipGroupIdnumberThe unique identifier of the chip group.Yes*
namestringThe name associated with the chip group.Yes*

Note: At least one of chipGroupId or name must be provided. If both are provided, chipGroupId takes precedence.

Example Query

curl --location 'https://iyk.app/chips?chipGroupId=234' \
--header 'x-iyk-api-key: <API_KEY>'

Response

The response is an array of objects, each representing a chip.

Response Object Properties

FieldTypeDescription
uidstringA unique identifier for the chip.
createdAtstringThe timestamp when the chip was registered with IYK.
isConfiguredbooleanIndicates whether the chip is configured (true) or not (false).
Example Response
[
    {
        "uid": "1148192980366208",
        "createdAt": "2022-11-05T14:37:06.357Z",
        "isConfigured": true
    },
    ...more items
]