Skip to content

API and webhooks

Create an API key, make a first request, stay inside the limits, and send table and run events to your own endpoint with signed webhooks.

Open in Inrick

3 minute read

What you need

Plan
Growth and Scale
Role
Owner or admin
Credits
  • API request: free

Steps

  1. Step 1: Create a key

    In Settings, API and webhooks, press Create key, name it for where it runs and choose its scopes. The key is shown once. Inrick keeps only a hash of it.

    The Create key dialog with the key's name and the scopes it can use.
  2. Step 2: Make a first request

    Send the key in the Authorization header. This request returns the workspace, its plan and the credit balance:

    Every response says what it used in credits and what's left in credits_remaining. Data requests use credits the same way they do in the app.

    A first request with curl
    curl "https://inrick.com/api/v1/account" \
      -H "Authorization: Bearer $INRICK_API_KEY"

    What this costs

    • API request: free Free right now.
    The new API key in Settings, shown only by its first and last characters, with its scopes and when it was last used.
  3. Step 3: Stay inside the limits

    Each key can make up to 120 requests a minute. Responses carry x-ratelimit-limit, x-ratelimit-remaining and x-ratelimit-reset. Over the limit the API answers 429 with retry-after, the seconds to wait.

    The request log lists every call with its status and credits, kept for 90 days.

    The request log with recent API calls, their status and the credits each one used.
  4. Step 4: Add a webhook endpoint

    Add endpoint takes an HTTPS URL and the events to send, such as rows added to a table, a run completed or a signal matched.

    The Add endpoint dialog with an HTTPS URL, a description and the events to send.
  5. Step 5: Check each delivery's signature

    Every delivery carries a Inrick-Signature header: a timestamp and an HMAC SHA-256 of the timestamp and the raw body, signed with the endpoint's secret. Reject deliveries more than 5 minutes old.

    Failed deliveries are retried on a schedule, and any event can be sent again from the delivery log.

    The webhook endpoints list with the new endpoint, its events and its delivery status.

Tips

  • Keep keys on your server. The API sends no CORS headers, and a key sent in the URL is refused.
  • Match errors on error.code, which never changes, and include the x-request-id header when you contact support.
All guides