Using Hiboo API with Postman
Last updated
Was this helpful?
Was this helpful?
{
"name": "{{apiName}}",
"apiKey": "{{apiKey}}"
}// Auto-update token after successful login
if (pm.response.code === 200) {
const responseData = pm.response.json();
pm.collectionVariables.set("x-access-token", responseData.token);
console.log("Token updated successfully");
} else {
console.log("Login failed:", pm.response.text());
}{
"id": 42,
"email": "api@hiboo.io",
"admin": false,
"firstName": "John",
"lastName": "Doe",
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}