Skip to main content
POST
/
api
/
v1
/
org
/
audit_data
/
pointer
/
commit
Commit Audit Pointer
curl --request POST \
  --url https://app.superleap.com/api/v1/org/audit_data/pointer/commit \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '
{
  "slug": "<string>",
  "pointer": {
    "random_id": "<string>",
    "updated_at": 123
  }
}
'
Commit the last processed pointer for a given array of audit data.
Ordering matters while committing the last processed pointer, latest call to superleap will be considered. Please handle race conditions accordingly.

How to fetch Pointer

In the response from Polling Data API. audit_data array contains a set of items that denote a change in data. A combination of random_id and updated_at from that item makes up the pointer for that data set

Headers

Authorization
string
required
Bearer token for authentication
Content-Type
string
default:"application/json"
required
application/json

Body

slug
string
required
Object identifier (e.g., “lead”)
pointer
object
required

Example Request

curl --location 'https://app.superleap.com/api/v1/org/audit_data/pointer/commit/' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer SUPERSECRETREDACTEDKEY' \
--data '{
   "slug": "lead",
   "pointer": {
       "random_id": "Hyvh0I5T",
       "updated_at": 0
   }
}'