Get a Flow
GET
Get a Flow
https://api.moltin.com/v2/flows/:id
Path Parameters:
Name | Required | Type | Description |
---|---|---|---|
id | Required | string | The ID for the flow you are requesting. |
Headers:
Name | Required | Type | Description |
---|---|---|---|
Authorization | Required | string | The Bearer token required to get access to the API. |
200 OK
{
"data": {
"id": "38ba1451-efa4-4361-9ca6-3fb646490f37",
"type": "flow",
"name": "extraFieldRenamed",
"slug": "products",
"description": "Extends the default product object",
"enabled": true,
"links": {
"self": "https://api.moltin.com/v2/flows/38ba1451-efa4-4361-9ca6-3fb646490f37"
},
"relationships": {},
"meta": {
"timestamps": {
"created_at": "2018-05-10T01:41:36.009Z",
"updated_at": "2018-05-10T15:27:26.241Z"
}
}
}
}
curl https://api.moltin.com/v2/flows/:id \
-H "Authorization: Bearer XXXX"
const MoltinGateway = require('@moltin/sdk').gateway
const Moltin = MoltinGateway({
client_id: 'X'
})
const flowId = 'XXXX';
Moltin.Flows.Get(flowId).then(flows => {
// Do something
});