/api/auditLog
AnsweredHi People,
I'm tring to get the audit trail of the last 24 hours. I"m suing this API endpoint:
https://xxxxxxxx-xxxx-4ee2-9e1e-6b1e13b056b5.relay.vmsproxy.com/api/auditLog?from=2025-08-20T10%3A00%3A000&to=2025-08-21T10%3A00%3A000But it always returns with this error:Auth token invalid or expired | {"cloudId":"xxxxxxxx-xxxx-47ef-a79e-1f65245c30ef","error":"Request failed with status code 401","endpoint":"/api/auditLog?from=2025-08-22T12%3A44%3A22.000&to=2025-08-23T12%3A44%3A22.000","authMethod":"Authorization Bearer","tokenPrefix":"nxcdb-eyJ0eXAiO...","responseData":{"error":"12","errorId":"unauthorized","errorString":"Auth_MissingCredentials"},"requestHeaders":{"authorization":"Bearer nxcdb-eyJ0eXAiO..."}}
The rest of the integration works fine, I get the list of the cameras, stream etc.
I'm suing this API documentation:
https://meta.nxvms.com/doc/developers/api-tool/api-auditlog-get?search=
-
Hi Adam,
The error message : "error":"12","errorId":"unauthorized","errorString":"Auth_MissingCredentials", that said your request probably not redirect with proper authentication header attached.

Do you handle the redirection of 307 response?
0
Please sign in to leave a comment.
Comments
1 comment