Create a trace session token for a deployment
POST
/__remote/api.vercel.com/v1/projects/traces/sessionMints a short-lived HS256 JWT scoped to a deployment hostname. The Edgenivo CLI presents this JWT to the Edgenivo proxy on requests it wants traced.
/__remote/api.vercel.com/v1/projects/traces/session
const response = await fetch('/__remote/api.vercel.com/v1/projects/traces/session?teamId=string&slug=string', { method: 'POST', headers: { 'Authorization': 'Bearer YOUR_ACCESS_TOKEN', 'Content-Type': 'application/json', }, body: JSON.stringify({ "projectId": "example_id", "hostname": "Example Name" }),});
const data = await response.json();console.log(data);Response
{ "token": "string"}AuthorizationbearerToken
Default authentication mechanism