Learn CRUD APIs with Authentication, Payloads, Live Testing & Insurance APIs
apipilot_secure_token_2026
Username: admin Password: admin123
{
"project_id": 1,
"collection_id": 1,
"request_name": "Create User API",
"endpoint_url": "https://example.com/api/users",
"http_method": "POST",
"request_headers": "{\"Content-Type\":\"application/json\"}",
"request_body": "{\"name\":\"John\",\"email\":\"john@example.com\"}",
"response_body": "{\"status\":\"success\"}",
"file_type": "json",
"tags": "users,create"
}
{
"project_id": 1,
"collection_id": 1,
"request_name": "Updated Login API",
"endpoint_url": "https://example.com/api/v2/login",
"http_method": "POST",
"request_headers": "{\"Content-Type\":\"application/json\"}",
"request_body": "{\"email\":\"admin@apipilot.com\",\"password\":\"newpassword\"}",
"response_body": "{\"status\":\"updated\"}",
"file_type": "json",
"tags": "auth,login,updated"
}
{
"request_name": "Patched Login API",
"tags": "patched,auth"
}
Bearer apipilot_secure_token_2026
Username: admin Password: admin123
GET https://apipilot.co.in/InsuranceAPI.php POST https://apipilot.co.in/InsuranceAPI.php PUT https://apipilot.co.in/InsuranceAPI.php?id=1 PATCH https://apipilot.co.in/InsuranceAPI.php?id=1 DELETE https://apipilot.co.in/InsuranceAPI.php?id=1
{
"Content-Type": "application/json",
"Authorization": "Bearer apipilot_secure_token_2026"
}
{
"Authorization": "Bearer apipilot_secure_token_2026"
}
https://apipilot.co.in/InsuranceAPI.php?id=1
pm.test("Status code is 200", function () {
pm.response.to.have.status(200);
});
pm.test("Response is valid JSON", function () {
pm.response.json();
});
pm.test("Response time is less than 3 seconds", function () {
pm.expect(pm.response.responseTime).to.be.below(3000);
});
{
"Content-Type": "application/json",
"Authorization": "Bearer apipilot_secure_token_2026"
}
{
"policy_id": 1001,
"customer_name": "John Doe",
"customer_email": "john@example.com",
"mobile_number": "9876543210",
"insurance_type": "Health Insurance",
"policy_number": "HLT-2026-1001",
"premium_amount": 25000,
"sum_insured": 500000,
"policy_start_date": "2026-01-01",
"policy_end_date": "2027-01-01",
"policy_status": "Active"
}
pm.test("Status code is 200 or 201", function () {
pm.expect(pm.response.code).to.be.oneOf([200, 201]);
});
pm.test("Policy created successfully", function () {
const jsonData = pm.response.json();
pm.expect(jsonData.status).to.eql("success");
});
pm.test("Response contains policy id", function () {
const jsonData = pm.response.json();
pm.expect(jsonData.policy_id).to.exist;
});
{
"Content-Type": "application/json",
"Authorization": "Bearer apipilot_secure_token_2026"
}
{
"customer_name": "John Updated",
"premium_amount": 30000,
"sum_insured": 750000,
"policy_status": "Renewed"
}
pm.test("Status code is 200", function () {
pm.response.to.have.status(200);
});
pm.test("Policy updated successfully", function () {
const jsonData = pm.response.json();
pm.expect(jsonData.status).to.eql("success");
});
pm.test("Update message exists", function () {
const jsonData = pm.response.json();
pm.expect(jsonData.message).to.include("updated");
});
{
"Content-Type": "application/json",
"Authorization": "Bearer apipilot_secure_token_2026"
}
{
"policy_status": "Expired",
"premium_amount": 32000
}
pm.test("Status code is 200", function () {
pm.response.to.have.status(200);
});
pm.test("Patch successful", function () {
const jsonData = pm.response.json();
pm.expect(jsonData.status).to.eql("success");
});
pm.test("Patch response contains message", function () {
const jsonData = pm.response.json();
pm.expect(jsonData.message).to.exist;
});
{
"Authorization": "Bearer apipilot_secure_token_2026"
}
pm.test("Status code is 200", function () {
pm.response.to.have.status(200);
});
pm.test("Policy deleted successfully", function () {
const jsonData = pm.response.json();
pm.expect(jsonData.status).to.eql("success");
});
pm.test("Delete message exists", function () {
const jsonData = pm.response.json();
pm.expect(jsonData.message).to.include("deleted");
});