Headers(for all APIs)
application_id: edcc7a3a-a714-447e-a6d2-2e542bb0d7f2
API
Create API and Add it to collection
	NOTE: Here, we are assuming that the collection is already created. If not, we need to create a collection first and then follow the same steps

Step-1
	Endpoint - https://mirabilis-production.up.railway.app/apis (POST)
	Payload - {
    "url": “<API ENDPOINT>",
    "type": <GET|PUT|POST|DELETE>,
    "name": <Enter API NAME>,
    "payload": <PAYLOAD OBJ>,
    "verification": <VERIFICATION OBJ>,
    "params": [{“field_name”: <NAME OF FIELD>, “field_value”: <VALUE OF FIELD>}] (arr of objs),
    "headers": [{“field_name”: <NAME OF FIELD>, “field_value”: <VALUE OF FIELD>}] (arr of objs)
}

Response format - {
    "api_id": "76856b62-2b7e-4810-b79f-30185f76ce00",
    "api_trends": null,
    "created_at": "2026-01-28T18:27:38",
    "created_by": "7DScy1K4WtMfmwQjC7mbwesSAHn2",
    "name": "New API",
    "payload": "",
    "type": "get",
    "updated_by": "7DScy1K4WtMfmwQjC7mbwesSAHn2",
    "url": "https://",
    "verification": ""
}

Step-2
Endpoint - https://mirabilis-production.up.railway.app/api_collection/<api_collection_id>/child (POST)
api_collection_id - The collection you want the API to be added into
payload - [
    {
        "type": "REQUEST",
        "id": <API_ID_OF_THE_API_CREATED_ABOVE>
    }
]


Get APIs(GET)
	Endpoint - https://mirabilis-production.up.railway.app/apis

      (C) Get API(GET)
	Endpoint - https://mirabilis-production.up.railway.app/apis/<api_id>
	Note: you will get the api_id after creating an API using POST CALL - you can use it to verify whether the API was created or not
Collections
Create Collection
	Endpoint - https://mirabilis-production.up.railway.app/api_collection
	Payload - {
    	   "name": <Name of Collection>,
    	   "parent_collection_id": “”
}
	
	Note: This payload will create root level collections, I think this is enough for now - PING ME if you also want the nested collection API

Get Collections
Endpoint - https://mirabilis-production.up.railway.app/api_collection

      (C) Get Collection
	Endpoint - https://mirabilis-production.up.railway.app/api_collection/<collection_id>
	Note: you will get the collection_id after creating an Collection using POST CALL - you can use it to verify whether the Collection was created or not
