Okapi Okapi

Snyk API v1 org audit log search removal

Stopped workingSubscribe to Snyk APIShare

On January 22, 2025, the v1 organization audit log search was removed. This change affects POST /v1/org/{id}/audit* requests, which now fail. Calls to this endpoint no longer return audit log data.


Calls it hits

  • POST /v1/org/{id}/audit*

What to use instead of these calls

Call the REST audit logs API GET /rest/orgs/{org_id}/audit_logs/search instead. This replacement requires using RFC3339 from/to timestamps and cursor pagination.

In Snyk API's words

Group and org level audit logs v1 January 22, 2025 Search Audit Logs (Group and Org) v1 API to GA REST Audit logs API migration guide

Snyk API, Announcement

Facts

API
Snyk API api.snyk.io
Kind
Removal
Announced
July 22, 2024
Takes effect
January 22, 2025
Calls after that day
Fail
Source
Announcement
Last updated
Verified
, against Snyk API's own pages

Questions

When does this change take effect?

Calls to POST /v1/org/{id}/audit* on Snyk API stopped working on January 22, 2025.

What happens to calls after January 22, 2025?

They have failed since January 22, 2025.

How do I find the calls this hits in my code?

Okapi reads your repository, finds the calls this change hits and opens a pull request with the fix. It never commits to your branches: every change comes as a pull request you review.


More from Snyk API 3

  1. /v1/org/{id}/projectsEndpoint removal Stopped working
  2. POST /v1/group/{id}/audit*Removal Stopped working
  3. /v1/reporting/*Removal Stopped working

You fixed this one by hand.

Okapi opens the pull request with the fix before the next breaking change reaches your code.

Add to GitHub

Get notifications

Subscribe to Snyk API

Hear about each breaking change Snyk API announces, in your feed reader, calendar or Slack.

1What to follow

Provider
  • Snyk API

2Where to get it

/breaking-changes/feed.xml

Paste it into Feedly, Inoreader, NetNewsWire or any reader. New changes show up as they're announced.