## List

`client.Predictions.StructureAndBinding.List(ctx, query) (*CursorPage[PredictionStructureAndBindingListResponse], error)`

**get** `/compute/v1/predictions/structure-and-binding`

List structure and binding predictions, optionally filtered by workspace

### Parameters

- `query PredictionStructureAndBindingListParams`

  - `AfterID param.Field[string]`

    Return results after this ID

  - `BeforeID param.Field[string]`

    Return results before this ID

  - `Limit param.Field[int64]`

    Max items to return. Defaults to 100.

  - `WorkspaceID param.Field[string]`

    Filter by workspace ID. Only used with admin API keys. If not provided, defaults to the workspace associated with the API key, or the default workspace for admin keys.

### Returns

- `type PredictionStructureAndBindingListResponse struct{…}`

  - `ID string`

    Unique prediction identifier

  - `CompletedAt Time`

  - `CreatedAt Time`

  - `DataDeletedAt Time`

    When the input/output data was deleted, or null if still available

  - `Error PredictionStructureAndBindingListResponseError`

    Error details when failed

    - `Code string`

      Machine-readable error code

    - `Message string`

      Human-readable error message

    - `Details any`

      Additional field-level error details keyed by input path, when available.

  - `ExpiresAt Time`

    When this resource and its associated data will be permanently deleted. Null while still in progress.

  - `Livemode bool`

    Whether this resource was created with a live API key.

  - `Model Boltz2_1`

    Model used for prediction

    - `const Boltz2_1Boltz2_1 Boltz2_1 = "boltz-2.1"`

  - `StartedAt Time`

  - `Status PredictionStructureAndBindingListResponseStatus`

    - `const PredictionStructureAndBindingListResponseStatusPending PredictionStructureAndBindingListResponseStatus = "pending"`

    - `const PredictionStructureAndBindingListResponseStatusRunning PredictionStructureAndBindingListResponseStatus = "running"`

    - `const PredictionStructureAndBindingListResponseStatusSucceeded PredictionStructureAndBindingListResponseStatus = "succeeded"`

    - `const PredictionStructureAndBindingListResponseStatusFailed PredictionStructureAndBindingListResponseStatus = "failed"`

  - `Version string`

    Model version used for prediction

  - `WorkspaceID string`

    Workspace ID

  - `IdempotencyKey string`

    Client-provided idempotency key

### Example

```go
package main

import (
  "context"
  "fmt"

  "github.com/boltz-bio/boltz-api-go"
  "github.com/boltz-bio/boltz-api-go/option"
)

func main() {
  client := boltzapi.NewClient(
    option.WithAPIKey("My API Key"),
  )
  page, err := client.Predictions.StructureAndBinding.List(context.TODO(), boltzapi.PredictionStructureAndBindingListParams{

  })
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", page)
}
```
