API Pilot Training Portal

Learn CRUD APIs with Authentication, Payloads, Live Testing & Insurance APIs

Authentication

Bearer Token

apipilot_secure_token_2026

Basic Login

Username: admin
Password: admin123
GET

Fetch API Data

Waiting for response...
POST

Create Request

{
  "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"
}
Waiting for response...
PUT

Update Request

{
  "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"
}
Waiting for response...
PATCH

Patch Request

{
  "request_name": "Patched Login API",
  "tags": "patched,auth"
}
Waiting for response...
DELETE

Delete Request

Waiting for response...

Insurance API Authorization

Bearer Token

Bearer apipilot_secure_token_2026

Basic Credentials

Username: admin
Password: admin123

Insurance API Endpoints

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

Common Headers

{
  "Content-Type": "application/json",
  "Authorization": "Bearer apipilot_secure_token_2026"
}
GET

GET Insurance Policies

Headers

{
  "Authorization": "Bearer apipilot_secure_token_2026"
}

GET Single Policy

https://apipilot.co.in/InsuranceAPI.php?id=1

Test Validation

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);
});
POST

POST Insurance Policy

Headers

{
  "Content-Type": "application/json",
  "Authorization": "Bearer apipilot_secure_token_2026"
}

Request Payload

{
  "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"
}

Test Validation

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;
});
PUT

PUT Insurance Policy

Headers

{
  "Content-Type": "application/json",
  "Authorization": "Bearer apipilot_secure_token_2026"
}

Request Payload

{
  "customer_name": "John Updated",
  "premium_amount": 30000,
  "sum_insured": 750000,
  "policy_status": "Renewed"
}

Test Validation

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");
});
PATCH

PATCH Insurance Policy

Headers

{
  "Content-Type": "application/json",
  "Authorization": "Bearer apipilot_secure_token_2026"
}

Request Payload

{
  "policy_status": "Expired",
  "premium_amount": 32000
}

Test Validation

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;
});
DELETE

DELETE Insurance Policy

Headers

{
  "Authorization": "Bearer apipilot_secure_token_2026"
}

Test Validation

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");
});