Create API Collection for Project via API Platform

API toolRecipe Tools

What it does

When a new API request arrives, this automation searches a data table for matching project records. If records exist, it calls a function to create the API collection and returns success to the caller.

Who it's for

Engineering teams who need to generate API collections for projects through an API endpoint without manual setup.

How teams use this

Generate collections from external systems

Let another application call this API to create project collections without direct access to the platform. The endpoint validates the project exists and builds the collection automatically.

Integrate with CI/CD pipelines

Embed this API in deployment workflows so collections are created as part of project provisioning. The same validation and creation logic runs each time a new project is deployed.

Add custom field validation

Extend the search step to check additional project fields or filter by status before creating the collection. Only projects meeting those conditions will generate an API collection.

Notify teams when collections are created

Include a notification step that alerts the project team when the API collection is successfully generated. This keeps stakeholders informed without requiring them to check the system.

How it works

  1. Receive new API request. Define the request and response parameters for this API endpoint so callers can submit project details in real time.
  2. Search for matching project records. Query the Workato Db Table to find records that match the incoming request parameters so the automation knows which project to use.
  3. Check if records were found. If the search returns no results, stop the job with an error. If records exist, proceed to create the collection.
  4. Create the API collection. Call the Workato Recipe Function to generate the API collection for the project using the matched records from the data table.
  5. Return success response. Send a success response back to the API caller with the collection details or confirmation of completion.