Hello, giving this a try via the Rest API and I am immediately getting a 401 Unauthorized. I omitted the client secret for security reasons. Here is the log from Postman for the request that I copied from the docs.
--Postman Log--
POST /event HTTP/1.1
content-type: application/json
openpanel-client-id: f5ddae6d-caf5-492c-bb41-43e0fc25d3e2
openpanel-client-secret: <SECRET_OMIT>
User-Agent: PostmanRuntime/7.37.3
Accept: /
Cache-Control: no-cache
Postman-Token: a3298bb7-aa18-46ac-9ee5-8a8210cfe27e
Host: api.openpanel.dev
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Content-Length: 85
{"name":"my_event","properties":{"foo":"bar"},"timestamp":"2024-05-22T08:42:54.319Z"}
HTTP/1.1 401 Unauthorized
Date: Thu, 23 May 2024 15:54:06 GMT
Content-Length: 0
Connection: keep-alive
access-control-allow-origin: *
access-control-allow-credentials: true
CF-Cache-Status: DYNAMIC
Report-To: {"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=4CyDfFF5fmGh4gjkklDeW5UgpML0HSRO4l5MrMZaMY5dV8O50DAHXILvRVByQyvwn8kpWR96%2Bc%2Bn1M%2FtqdVMuQLnHSdsWjWjQZWCnkWiTrIoDboTtEpJlE0lPfNCPLoq0A%2B9ZQ%3D%3D"}],"group":"cf-nel","max_age":604800}
NEL: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
Server: cloudflare
CF-RAY: 888638fd4afe5ec6-PDX
alt-svc: h3=":443"; ma=86400
Hello, giving this a try via the Rest API and I am immediately getting a 401 Unauthorized. I omitted the client secret for security reasons. Here is the log from Postman for the request that I copied from the docs.
--Postman Log--
POST /event HTTP/1.1
content-type: application/json
openpanel-client-id: f5ddae6d-caf5-492c-bb41-43e0fc25d3e2
openpanel-client-secret: <SECRET_OMIT>
User-Agent: PostmanRuntime/7.37.3
Accept: /
Cache-Control: no-cache
Postman-Token: a3298bb7-aa18-46ac-9ee5-8a8210cfe27e
Host: api.openpanel.dev
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Content-Length: 85
{"name":"my_event","properties":{"foo":"bar"},"timestamp":"2024-05-22T08:42:54.319Z"}
HTTP/1.1 401 Unauthorized
Date: Thu, 23 May 2024 15:54:06 GMT
Content-Length: 0
Connection: keep-alive
access-control-allow-origin: *
access-control-allow-credentials: true
CF-Cache-Status: DYNAMIC
Report-To: {"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=4CyDfFF5fmGh4gjkklDeW5UgpML0HSRO4l5MrMZaMY5dV8O50DAHXILvRVByQyvwn8kpWR96%2Bc%2Bn1M%2FtqdVMuQLnHSdsWjWjQZWCnkWiTrIoDboTtEpJlE0lPfNCPLoq0A%2B9ZQ%3D%3D"}],"group":"cf-nel","max_age":604800}
NEL: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
Server: cloudflare
CF-RAY: 888638fd4afe5ec6-PDX
alt-svc: h3=":443"; ma=86400