List structure and binding predictions
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
Returns
List structure and binding predictions
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)
}
{
"data": [
{
"id": "sab_pred_2X7Ab9Cd3Ef6Gh1JkLmN",
"completed_at": "2019-12-27T18:11:19.117Z",
"created_at": "2019-12-27T18:11:19.117Z",
"data_deleted_at": "2019-12-27T18:11:19.117Z",
"error": {
"code": "code",
"message": "message",
"details": {}
},
"expires_at": "2019-12-27T18:11:19.117Z",
"livemode": true,
"model": "boltz-2.1",
"started_at": "2019-12-27T18:11:19.117Z",
"status": "pending",
"version": "version",
"workspace_id": "workspace_id",
"idempotency_key": "idempotency_key"
}
],
"first_id": "sab_pred_2X7Ab9Cd3Ef6Gh1JkLmN",
"has_more": true,
"last_id": "sab_pred_2X7Ab9Cd3Ef6Gh1JkLmN"
}Returns Examples
{
"data": [
{
"id": "sab_pred_2X7Ab9Cd3Ef6Gh1JkLmN",
"completed_at": "2019-12-27T18:11:19.117Z",
"created_at": "2019-12-27T18:11:19.117Z",
"data_deleted_at": "2019-12-27T18:11:19.117Z",
"error": {
"code": "code",
"message": "message",
"details": {}
},
"expires_at": "2019-12-27T18:11:19.117Z",
"livemode": true,
"model": "boltz-2.1",
"started_at": "2019-12-27T18:11:19.117Z",
"status": "pending",
"version": "version",
"workspace_id": "workspace_id",
"idempotency_key": "idempotency_key"
}
],
"first_id": "sab_pred_2X7Ab9Cd3Ef6Gh1JkLmN",
"has_more": true,
"last_id": "sab_pred_2X7Ab9Cd3Ef6Gh1JkLmN"
}