Learn how to connect with Clink from Test to Production environments.
Prerequisite: Please ensure you have an account in our test environment and thoroughly debug before deploying to production.
Our test environment uses a different domain and API key. Do not use real data in the test environment.
Rolling a key revokes it and automatically generates a replacement key. You can set the old key to expire immediately or schedule it to expire after a specified time.To roll an API key:
Open the API keys page.
Click the overflow button (⋮) in the row of the key you want to roll, then select Roll Key.
Select an expiration date from the Expiration dropdown.
Click Roll Key.
Copy the new key value displayed in the dialog.
Save the key value, as you won’t be able to retrieve it later.
Deleting a key immediately prevents it from making API calls. You cannot delete the standard key if it is the last valid key remaining.To delete an API key:
Open the API keys page.
Roll the key you want to delete.
Update your code to use the new key.
Click the overflow button (⋮) on the old key, then select delete.
Webhooks enable applications to provide real-time information to other applications. They deliver data immediately as events occur, ensuring you receive information instantly.
Create an event destination to receive events at an HTTPS webhook endpoint. Once you register a webhook endpoint, Clink will push real-time event data to your application’s webhook endpoint when events occur.
Clink uses HMAC SHA-256 to generate a signature for each event. The signature key becomes available after webhook endpoint registration.To generate your signature:
Extract the timestamp and signature from the header:
Timestamp is available in the X-Clink-Timestamp field
Clink-generated signature is available in the X-Clink-Signature field
Prepare the payload string by concatenating:
The timestamp (as a string)
The character .
The event body (JSON payload)
Generate your signature by computing an HMAC with the SHA256 hash function.
Compare the signatures and process the event only if they match.
Clink attempts to deliver events to your destination up to 10 times with exponential backoff. All retries complete within approximately one day.Please note that we do not guarantee events will be delivered in the order they were generated. Ensure your application does not depend on receiving events in a specific order.