> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://nemo-platform.docs.buildwithfern.com/nemo/platform/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://nemo-platform.docs.buildwithfern.com/nemo/platform/_mcp/server.

# List Steps

GET https://host.com/apis/jobs/v2/workspaces/{workspace}/jobs/{name}/steps

List job steps with pagination and filtering.

Reference: https://nemo-platform.docs.buildwithfern.com/nemo/platform/nemo/platform/documentation/reference/api-reference/jobs/list-steps-apis-jobs-v-2-workspaces-workspace-jobs-name-steps-get

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: Nemo Platform API
  version: 1.0.0
paths:
  /apis/jobs/v2/workspaces/{workspace}/jobs/{name}/steps:
    get:
      operationId: list-steps-apis-jobs-v-2-workspaces-workspace-jobs-name-steps-get
      summary: List Steps
      description: List job steps with pagination and filtering.
      tags:
        - subpackage_jobs
      parameters:
        - name: name
          in: path
          required: true
          schema:
            type: string
        - name: workspace
          in: path
          required: true
          schema:
            type: string
        - name: page
          in: query
          description: Page number.
          required: false
          schema:
            type: integer
            default: 1
        - name: page_size
          in: query
          description: Page size.
          required: false
          schema:
            type: integer
            default: 25
        - name: sort
          in: query
          description: >-
            The field to sort by. To sort in decreasing order, use `-` in front
            of the field name.
          required: false
          schema:
            $ref: '#/components/schemas/PlatformJobSortField'
            default: created_at
        - name: filter
          in: query
          description: Filter steps by job, status, and source.
          required: false
          schema:
            $ref: '#/components/schemas/PlatformJobStepsListFilter'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PlatformJobStepWithContextsPage'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
servers:
  - url: https://host.com
    description: Default
components:
  schemas:
    PlatformJobSortField:
      type: string
      enum:
        - created_at
        - '-created_at'
        - updated_at
        - '-updated_at'
      title: PlatformJobSortField
    PlatformJobStatus:
      type: string
      enum:
        - created
        - pending
        - active
        - cancelled
        - cancelling
        - error
        - completed
        - paused
        - pausing
        - resuming
      description: >-
        Enumeration of possible job statuses.


        This enum represents the various states a job can be in during its
        lifecycle,

        from creation to a terminal state.
      title: PlatformJobStatus
    PlatformJobStepsListFilter:
      type: object
      properties:
        job:
          type: string
          description: The ID of the job to filter steps by.
        status:
          type: array
          items:
            $ref: '#/components/schemas/PlatformJobStatus'
          description: The list of statuses to filter steps by.
        source:
          type: string
          description: The source of the job steps.
      description: Filter options for listing platform job steps.
      title: PlatformJobStepsListFilter
    PlatformJobSecretEnvironmentVariableRef:
      type: object
      properties:
        name:
          type: string
          description: The name of the secret to reference
      required:
        - name
      description: >-
        Reference to a secret to populate an environment variable for a job
        step.
      title: PlatformJobSecretEnvironmentVariableRef
    PlatformJobEnvironmentVariable:
      type: object
      properties:
        name:
          type: string
          description: The environment variable name
        value:
          type: string
          description: The environment variable value
        from_secret:
          $ref: '#/components/schemas/PlatformJobSecretEnvironmentVariableRef'
          description: >-
            Reference to a secret environment variable to populate the
            environment variable
      required:
        - name
      description: Environment variable for a job step
      title: PlatformJobEnvironmentVariable
    ContainerSpec:
      type: object
      properties:
        image:
          type: string
        entrypoint:
          type: array
          items:
            type: string
        command:
          type: array
          items:
            type: string
      required:
        - image
      description: |-
        Specification for a container configuration.

        Defines the container image and related configuration for job execution.
      title: ContainerSpec
    ComputeResourceSpec:
      type: object
      properties:
        cpu:
          type: string
          description: CPU specification (e.g., '250m', '1', '2.5').
        memory:
          type: string
          description: Memory specification (e.g., '128Mi', '1Gi', '512M').
      description: Resource specification.
      title: ComputeResourceSpec
    ComputeResources:
      type: object
      properties:
        requests:
          $ref: '#/components/schemas/ComputeResourceSpec'
          description: Minimum resources requested for the container.
        limits:
          $ref: '#/components/schemas/ComputeResourceSpec'
          description: Maximum resources the container can use.
        num_nodes:
          type: integer
          default: 1
          description: Number of nodes to use.
        num_gpus:
          type: integer
          description: Step requesting number of GPUs.
        shm_size:
          type: string
          description: >-
            Shared memory (/dev/shm) size as a Kubernetes quantity (e.g. '1Gi',
            '4Gi'). Used for GPU and distributed-GPU job executors. When unset,
            defaults to 1Gi per allocated GPU.
      description: Resource requirements matching k8s ResourceRequirements format.
      title: ComputeResources
    PlatformJobStepSpecOutputExecutor:
      oneOf:
        - type: object
          properties:
            provider:
              type: string
              enum:
                - cpu
              description: 'Discriminator value: cpu'
            profile:
              type: string
              default: default
            container:
              $ref: '#/components/schemas/ContainerSpec'
            resources:
              $ref: '#/components/schemas/ComputeResources'
              description: Resource requests and limits for CPU execution.
          required:
            - provider
            - container
          description: |-
            CPU-based execution provider.

            Provides configuration for running jobs on CPU resources with
            resource requests and limits.
        - type: object
          properties:
            provider:
              type: string
              enum:
                - gpu
              description: 'Discriminator value: gpu'
            profile:
              type: string
              default: default
            container:
              $ref: '#/components/schemas/ContainerSpec'
            resources:
              $ref: '#/components/schemas/ComputeResources'
              description: Resource requests and limits for GPU execution.
          required:
            - provider
            - container
          description: |-
            GPU-based execution provider.

            Provides configuration for running jobs on GPU resources with
            resource requests and limits.
        - type: object
          properties:
            provider:
              type: string
              enum:
                - gpu_distributed
              description: 'Discriminator value: gpu_distributed'
            profile:
              type: string
              default: default
            container:
              $ref: '#/components/schemas/ContainerSpec'
            resources:
              $ref: '#/components/schemas/ComputeResources'
              description: Resource requests and limits for distributed GPU execution.
          required:
            - provider
            - container
          description: |-
            GPU-based execution provider.

            Provides configuration for running jobs on GPU resources with
            resource requests and limits.
        - type: object
          properties:
            provider:
              type: string
              enum:
                - subprocess
              default: subprocess
            profile:
              type: string
              default: default
            command:
              type: array
              items:
                type: string
          required:
            - provider
            - command
          description: Host subprocess execution provider.
      discriminator:
        propertyName: provider
      description: The executor for the step
      title: PlatformJobStepSpecOutputExecutor
    StepLifecycle:
      type: object
      properties:
        staleness_timeout_seconds:
          type: integer
          default: 0
          description: >-
            If every active task in the step goes this many seconds without an
            update, the step is terminated. A value of 0 disables staleness
            detection.
      description: |-
        Controller-level lifecycle configuration for a job step.

        These settings control how the jobs controller manages the step,
        as opposed to ``config`` which is the task payload forwarded to
        the container.
      title: StepLifecycle
    PlatformJobStepSpecOutput:
      type: object
      properties:
        name:
          type: string
          description: >-
            The name of the step. Must be unique for all steps in a job. Name
            must start with a lowercase letter, be 2-63 characters, and contain
            only lowercase letters, digits, and hyphens (no consecutive hyphens,
            cannot end with a hyphen).
        environment:
          type: array
          items:
            $ref: '#/components/schemas/PlatformJobEnvironmentVariable'
          description: Environment variables for the step
        executor:
          $ref: '#/components/schemas/PlatformJobStepSpecOutputExecutor'
          description: The executor for the step
        config:
          type: object
          additionalProperties:
            description: Any type
          description: Configuration for the step
        lifecycle:
          $ref: '#/components/schemas/StepLifecycle'
          description: Lifecycle configuration settings for the step
      required:
        - name
        - executor
      description: Specification for a single step in a platform job.
      title: PlatformJobStepSpecOutput
    AuthContext:
      type: object
      properties:
        principal_id:
          type: string
          description: The principal's unique identifier
        principal_email:
          type: string
          description: The principal's email address
        principal_groups:
          type: array
          items:
            type: string
          description: Groups the principal belongs to
        principal_on_behalf_of:
          type: string
          description: If acting on behalf of another principal, their principal ID
        principal_on_behalf_of_groups:
          type: array
          items:
            type: string
          description: Groups the on-behalf-of principal belongs to
        principal_on_behalf_of_email:
          type: string
          description: The on-behalf-of principal's email address
      required:
        - principal_id
      description: >-
        Auth context captured at resource creation for delegated access.


        Stores a snapshot of the creating principal's identity so that
        controllers

        can later act on their behalf (e.g., accessing secrets).
      title: AuthContext
    PlatformJobStepWithContext:
      type: object
      properties:
        id:
          type: string
        job:
          type: string
        attempt_id:
          type: string
        fileset:
          type: string
        workspace:
          type: string
        name:
          type: string
        step_spec:
          $ref: '#/components/schemas/PlatformJobStepSpecOutput'
        status:
          $ref: '#/components/schemas/PlatformJobStatus'
          default: created
        status_details:
          type: object
          additionalProperties:
            description: Any type
        error_details:
          type: object
          additionalProperties:
            description: Any type
        auth_context:
          $ref: '#/components/schemas/AuthContext'
          description: Auth context for task execution
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
      required:
        - id
        - job
        - attempt_id
        - fileset
        - workspace
        - name
      description: Step with additional context from parent job/attempt.
      title: PlatformJobStepWithContext
    PaginationData:
      type: object
      properties:
        page:
          type: integer
          description: The current page number.
        page_size:
          type: integer
          description: The page size used for the query.
        current_page_size:
          type: integer
          description: The size for the current page.
        total_pages:
          type: integer
          description: The total number of pages.
        total_results:
          type: integer
          description: The total number of results.
      required:
        - page
        - page_size
        - current_page_size
        - total_pages
        - total_results
      title: PaginationData
    PlatformJobStepWithContextsPage:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/PlatformJobStepWithContext'
        pagination:
          $ref: '#/components/schemas/PaginationData'
          description: Pagination information.
        sort:
          type: string
          description: The field on which the results are sorted.
        filter:
          type: object
          additionalProperties:
            description: Any type
          description: Filtering information.
      required:
        - data
      title: PlatformJobStepWithContextsPage
    ValidationErrorLocItems:
      oneOf:
        - type: string
        - type: integer
      title: ValidationErrorLocItems
    ValidationError:
      type: object
      properties:
        loc:
          type: array
          items:
            $ref: '#/components/schemas/ValidationErrorLocItems'
        msg:
          type: string
        type:
          type: string
        input:
          description: Any type
        ctx:
          type: object
          additionalProperties:
            description: Any type
      required:
        - loc
        - msg
        - type
      title: ValidationError
    HTTPValidationError:
      type: object
      properties:
        detail:
          type: array
          items:
            $ref: '#/components/schemas/ValidationError'
      title: HTTPValidationError

```

## Examples



**Request**

```json
{}
```

**Response**

```json
{
  "data": [
    {
      "id": "step-1234abcd",
      "job": "job-5678efgh",
      "attempt_id": "attempt-0001",
      "fileset": "fileset-20240115",
      "workspace": "research-team-alpha",
      "name": "preprocess",
      "step_spec": {
        "name": "preprocess",
        "executor": {
          "provider": "cpu",
          "container": {
            "image": "nemo/preprocess:1.2.0",
            "entrypoint": [
              "/bin/sh",
              "-c"
            ],
            "command": [
              "python preprocess.py --input $DATA_PATH"
            ]
          },
          "profile": "default",
          "resources": {
            "requests": {
              "cpu": "500m",
              "memory": "1Gi"
            },
            "limits": {
              "cpu": "1",
              "memory": "2Gi"
            },
            "num_nodes": 1,
            "num_gpus": 0,
            "shm_size": "1Gi"
          }
        },
        "environment": [
          {
            "name": "DATA_PATH",
            "value": "/mnt/data/input",
            "from_secret": {
              "name": "db-password"
            }
          }
        ],
        "config": {},
        "lifecycle": {
          "staleness_timeout_seconds": 300
        }
      },
      "status": "active",
      "status_details": {},
      "error_details": {},
      "auth_context": {
        "principal_id": "user-7890xyz",
        "principal_email": "alice@example.com",
        "principal_groups": [
          "data-scientists",
          "ml-engineers"
        ],
        "principal_on_behalf_of": "user-1234abc",
        "principal_on_behalf_of_groups": [
          "project-managers"
        ],
        "principal_on_behalf_of_email": "bob@example.com"
      },
      "created_at": "2024-01-15T09:30:00Z",
      "updated_at": "2024-01-15T10:00:00Z"
    }
  ],
  "pagination": {
    "page": 1,
    "page_size": 25,
    "current_page_size": 1,
    "total_pages": 1,
    "total_results": 1
  },
  "sort": "created_at",
  "filter": {}
}
```

**SDK Code**

```python
import requests

url = "https://host.com/apis/jobs/v2/workspaces/workspace/jobs/name/steps"

payload = {}
headers = {"Content-Type": "application/json"}

response = requests.get(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://host.com/apis/jobs/v2/workspaces/workspace/jobs/name/steps';
const options = {method: 'GET', headers: {'Content-Type': 'application/json'}, body: '{}'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://host.com/apis/jobs/v2/workspaces/workspace/jobs/name/steps"

	payload := strings.NewReader("{}")

	req, _ := http.NewRequest("GET", url, payload)

	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://host.com/apis/jobs/v2/workspaces/workspace/jobs/name/steps")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Content-Type"] = 'application/json'
request.body = "{}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://host.com/apis/jobs/v2/workspaces/workspace/jobs/name/steps")
  .header("Content-Type", "application/json")
  .body("{}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://host.com/apis/jobs/v2/workspaces/workspace/jobs/name/steps', [
  'body' => '{}',
  'headers' => [
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://host.com/apis/jobs/v2/workspaces/workspace/jobs/name/steps");
var request = new RestRequest(Method.GET);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Content-Type": "application/json"]
let parameters = [] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://host.com/apis/jobs/v2/workspaces/workspace/jobs/name/steps")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```