Get a Flow
GET/v2/flows/:flowID
- For Commerce, this endpoint retrieves a flow.
 - For Product Experience Manager, this endpoint retrieves a template.
 
Request
Path Parameters
The unique identifier of the flow/template you want to retrieve.
Responses
- 200
 - 404
 - 500
 
- application/json
 
- Schema
 - Example (from schema)
 - default
 
Schema
data object
A unique identifier for a resource.
A unique identifier for a flow/template.
The name of a flow/template.
A unique identifier of a flow/template.
A short description for a flow/template.
links object
Links allow you to move between requests. Single entities use a self parameter with a link to that specific resource. Listing pages use the following:
| Property | Description | 
|---|---|
current | Always the current page | 
first | Always the first page | 
last | null if there is only one page. | 
prev | null if you are on the first page. | 
next | null if there is only one page. | 
relationships object
Relationships are established between different flows/templates entities. For example, a field and an entry are related to a flow as both are attached to it.
fields object
data object
A unique identifier for a resource.
Represents the type of object being returned.
meta object
Possible values: [store, organization]
The resource owner, either organization or store.
timestamps object
The date and time a resource is created.
The date and time a resource is updated.
{
  "data": {
    "id": "00000000-0000-0000-0000-000000000000",
    "type": "flow",
    "name": "Products",
    "slug": "products",
    "description": "Extends the default product object",
    "enabled": true,
    "links": {
      "self": "https://euwest.api.elasticpath.com/v2/flows/d2a9b22a-b4b0-456b-bbc7-d8723aaffa84"
    },
    "relationships": {
      "fields": {
        "data": {
          "id": "00000000-0000-0000-0000-000000000000",
          "type": "brand"
        }
      }
    },
    "meta": {
      "owner": "enum",
      "timestamps": {
        "created_at": "2023-10-11T13:02:25.293Z",
        "updated_at": "2023-10-11T13:02:25.293Z"
      }
    }
  }
}
{
  "data": {
    "id": "38ba1451-efa4-4361-9ca6-3fb646490f37",
    "type": "flow",
    "name": "extraFieldRenamed",
    "slug": "products",
    "description": "Extends the default product object",
    "enabled": true,
    "links": {
      "self": "https://useast.api.elasticpath.com/v2/flows/38ba1451-efa4-4361-9ca6-3fb646490f37"
    },
    "relationships": {},
    "meta": {
      "owner": "organization",
      "timestamps": {
        "created_at": "2018-05-10T01:41:36.009Z",
        "updated_at": "2018-05-10T15:27:26.241Z"
      }
    }
  }
}
Bad request. Not Found.
- application/json
 
- Schema
 - Example (from schema)
 - internal-server-error
 
Schema
- Array [
 - ]
 
errors Error[]required
The HTTP response code of the error.
A brief summary of the error.
Optional additional detail about the error.
Internal request ID.
Additional supporting meta data for the error.
{
  "errors": [
    {
      "status": 500,
      "title": "Internal server error",
      "detail": "An internal error has occurred.",
      "request_id": "00000000-0000-0000-0000-000000000000",
      "meta": {
        "missing_ids": [
          "e7d50bd5-1833-43c0-9848-f9d325b08be8"
        ]
      }
    }
  ]
}
{
  "errors": [
    {
      "title": "Not Found",
      "status": 404
    }
  ]
}
Internal server error. There was a system failure in the platform.
- application/json
 
- Schema
 - Example (from schema)
 - internal-server-error
 
Schema
- Array [
 - ]
 
errors Error[]required
The HTTP response code of the error.
A brief summary of the error.
Optional additional detail about the error.
Internal request ID.
Additional supporting meta data for the error.
{
  "errors": [
    {
      "status": 500,
      "title": "Internal server error",
      "detail": "An internal error has occurred.",
      "request_id": "00000000-0000-0000-0000-000000000000",
      "meta": {
        "missing_ids": [
          "e7d50bd5-1833-43c0-9848-f9d325b08be8"
        ]
      }
    }
  ]
}
{
  "errors": [
    {
      "status": 500,
      "title": "Internal Server Error",
      "detail": "There was an internal server error, you can report with your request id.",
      "request_id": "635da56d-75a1-43cd-b696-7ab119756b3a"
    }
  ]
}