Flows

Create Flow

Creates a new flow with the provided details

POSThttps://api.laminar.run/flows
Body
workflowId*integer (int64)
name*string
description*string
program*string
executionOrder*integer (int32)
sourceIdinteger (int64)
destinationIdinteger (int64)
sourceApiDescription (object)
destinationApiDescription (object)
Response

Flow created successfully

Body
idinteger (int64)
name*string
description*string
currentFlowVersionFlowVersion (object)
executionOrder*integer (int32)
createdAtstring (date-time)
sourceApiDescription (object)
destinationApiDescription (object)
Request
const response = await fetch('https://api.laminar.run/flows', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "description": "text",
      "name": "text",
      "program": "text"
    }),
});
const data = await response.json();
Response
{
  "name": "text",
  "description": "text",
  "currentFlowVersion": {
    "createdAt": "2024-10-21T21:14:04.939Z"
  },
  "createdAt": "2024-10-21T21:14:04.939Z",
  "source": {
    "url": "text",
    "methodType": "GET",
    "authCredentials": {
      "name": "text",
      "authType": "text"
    },
    "name": "text",
    "description": "text"
  },
  "destination": {
    "url": "text",
    "methodType": "GET",
    "authCredentials": {
      "name": "text",
      "authType": "text"
    },
    "name": "text",
    "description": "text"
  }
}

Update Flow

Updates an existing flow with the provided details

PUThttps://api.laminar.run/flows
Body
flowId*integer (int64)
namestring
descriptionstring
programstring
sourceApiDescription (object)
destinationApiDescription (object)
sourceIdinteger (int64)
destinationIdinteger (int64)
Response

Flow updated successfully

Body
idinteger (int64)
name*string
description*string
currentFlowVersionFlowVersion (object)
executionOrder*integer (int32)
createdAtstring (date-time)
sourceApiDescription (object)
destinationApiDescription (object)
Request
const response = await fetch('https://api.laminar.run/flows', {
    method: 'PUT',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({}),
});
const data = await response.json();
Response
{
  "name": "text",
  "description": "text",
  "currentFlowVersion": {
    "createdAt": "2024-10-21T21:14:04.939Z"
  },
  "createdAt": "2024-10-21T21:14:04.939Z",
  "source": {
    "url": "text",
    "methodType": "GET",
    "authCredentials": {
      "name": "text",
      "authType": "text"
    },
    "name": "text",
    "description": "text"
  },
  "destination": {
    "url": "text",
    "methodType": "GET",
    "authCredentials": {
      "name": "text",
      "authType": "text"
    },
    "name": "text",
    "description": "text"
  }
}

Get Flow

Retrieves a specific flow's details

GEThttps://api.laminar.run/flows/{id}
Path parameters
id*integer (int64)
Response

Flow details retrieved successfully

Body
idinteger (int64)
name*string
description*string
currentFlowVersionFlowVersion (object)
executionOrder*integer (int32)
createdAtstring (date-time)
sourceApiDescription (object)
destinationApiDescription (object)
Request
const response = await fetch('https://api.laminar.run/flows/{id}', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "name": "text",
  "description": "text",
  "currentFlowVersion": {
    "createdAt": "2024-10-21T21:14:04.939Z"
  },
  "createdAt": "2024-10-21T21:14:04.939Z",
  "source": {
    "url": "text",
    "methodType": "GET",
    "authCredentials": {
      "name": "text",
      "authType": "text"
    },
    "name": "text",
    "description": "text"
  },
  "destination": {
    "url": "text",
    "methodType": "GET",
    "authCredentials": {
      "name": "text",
      "authType": "text"
    },
    "name": "text",
    "description": "text"
  }
}

Delete Flow

Deletes a specific flow

DELETEhttps://api.laminar.run/flows/{id}
Path parameters
id*integer (int64)
Response

Flow deleted successfully

Request
const response = await fetch('https://api.laminar.run/flows/{id}', {
    method: 'DELETE',
    headers: {},
});
const data = await response.json();