## Stop a running protein sequence redesign run

`client.Protein.SequenceRedesign.Stop(ctx, id) (*ProteinSequenceRedesignStopResponse, error)`

**post** `/compute/v1/protein/sequence-redesign/{id}/stop`

Stop an in-progress protein sequence redesign run early

### Parameters

- `id string`

### Returns

- `type ProteinSequenceRedesignStopResponse struct{…}`

  A fixed-structure protein sequence redesign run.

  - `ID string`

    Unique ProteinSequenceRedesignRun identifier

  - `CompletedAt Time`

  - `CreatedAt Time`

  - `DataDeletedAt Time`

    When the input, output, and result data was permanently deleted. Null if data has not been deleted.

  - `Engine BoltzProteinRedesign`

    Deprecated. Use pipeline instead.

    - `const BoltzProteinRedesignBoltzProteinRedesign BoltzProteinRedesign = "boltz-protein-redesign"`

  - `EngineVersion V2026_07_14`

    Deprecated. Use pipeline_version instead.

    - `const V2026_07_14V2026_07_14 V2026_07_14 = "v2026-07-14"`

  - `Error ProteinSequenceRedesignStopResponseError`

    - `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.

  - `Input ProteinSequenceRedesignStopResponseInputUnion`

    Pipeline input (null if data deleted)

    - `type ProteinSequenceRedesignStopResponseInputBinderProteinSequenceRedesignRunInputResponse struct{…}`

      - `Entities []ProteinSequenceRedesignStopResponseInputBinderProteinSequenceRedesignRunInputResponseEntityUnion`

        Every chain in the input CIF, assigned exactly once as target or binder.

        - `type ProteinSequenceRedesignStopResponseInputBinderProteinSequenceRedesignRunInputResponseEntityBinderSequenceRedesignTargetEntityResponse struct{…}`

          A fixed target chain from the input CIF.

          - `ChainID string`

          - `Role Target`

            - `const TargetTarget Target = "target"`

          - `Type FromTemplate`

            - `const FromTemplateFromTemplate FromTemplate = "from_template"`

        - `type ProteinSequenceRedesignStopResponseInputBinderProteinSequenceRedesignRunInputResponseEntityBinderSequenceRedesignBinderEntityResponse struct{…}`

          - `ChainID string`

          - `Role Binder`

            - `const BinderBinder Binder = "binder"`

          - `Type FromTemplate`

            - `const FromTemplateFromTemplate FromTemplate = "from_template"`

          - `DesignMotifs []ProteinSequenceRedesignStopResponseInputBinderProteinSequenceRedesignRunInputResponseEntityBinderSequenceRedesignBinderEntityResponseDesignMotif`

            Residues to redesign. Omit this field to keep the binder chain fixed.

            - `Filters []ProteinSequenceRedesignStopResponseInputBinderProteinSequenceRedesignRunInputResponseEntityBinderSequenceRedesignBinderEntityResponseDesignMotifFilterUnion`

              Filters applied to this motif in addition to global_design_filters.

              - `type ProteinSequenceRedesignStopResponseInputBinderProteinSequenceRedesignRunInputResponseEntityBinderSequenceRedesignBinderEntityResponseDesignMotifFilterExcludedAminoAcidsDesignFilterResponse struct{…}`

                - `AminoAcids []string`

                  Single-letter amino-acid codes that must not occur in the filtered designed region.

                - `Type ExcludedAminoAcids`

                  - `const ExcludedAminoAcidsExcludedAminoAcids ExcludedAminoAcids = "excluded_amino_acids"`

              - `type ProteinSequenceRedesignStopResponseInputBinderProteinSequenceRedesignRunInputResponseEntityBinderSequenceRedesignBinderEntityResponseDesignMotifFilterMaxHydrophobicFractionDesignFilterResponse struct{…}`

                - `MaxFraction float64`

                - `Type MaxHydrophobicFraction`

                  - `const MaxHydrophobicFractionMaxHydrophobicFraction MaxHydrophobicFraction = "max_hydrophobic_fraction"`

              - `type ProteinSequenceRedesignStopResponseInputBinderProteinSequenceRedesignRunInputResponseEntityBinderSequenceRedesignBinderEntityResponseDesignMotifFilterExcludedSequenceMotifsDesignFilterResponse struct{…}`

                - `Motifs []string`

                  Sequence motifs that must not occur. X matches any single residue.

                - `Type ExcludedSequenceMotifs`

                  - `const ExcludedSequenceMotifsExcludedSequenceMotifs ExcludedSequenceMotifs = "excluded_sequence_motifs"`

            - `Residues []int64`

              0-indexed residues to redesign on this chain.

            - `Type Residues`

              - `const ResiduesResidues Residues = "residues"`

      - `NumProteins int64`

        Number of unique filter-passing redesigned proteins to generate.

      - `Structure ProteinSequenceRedesignStopResponseInputBinderProteinSequenceRedesignRunInputResponseStructure`

        - `URL string`

          URL to download the file

        - `URLExpiresAt Time`

          When the presigned URL expires

      - `Type Binder`

        - `const BinderBinder Binder = "binder"`

      - `GlobalDesignFilters []ProteinSequenceRedesignStopResponseInputBinderProteinSequenceRedesignRunInputResponseGlobalDesignFilterUnion`

        Filters applied to every redesigned region. When omitted, cysteine is excluded. Pass [] to disable global filters.

        - `type ProteinSequenceRedesignStopResponseInputBinderProteinSequenceRedesignRunInputResponseGlobalDesignFilterExcludedAminoAcidsDesignFilterResponse struct{…}`

          - `AminoAcids []string`

            Single-letter amino-acid codes that must not occur in the filtered designed region.

          - `Type ExcludedAminoAcids`

            - `const ExcludedAminoAcidsExcludedAminoAcids ExcludedAminoAcids = "excluded_amino_acids"`

        - `type ProteinSequenceRedesignStopResponseInputBinderProteinSequenceRedesignRunInputResponseGlobalDesignFilterMaxHydrophobicFractionDesignFilterResponse struct{…}`

          - `MaxFraction float64`

          - `Type MaxHydrophobicFraction`

            - `const MaxHydrophobicFractionMaxHydrophobicFraction MaxHydrophobicFraction = "max_hydrophobic_fraction"`

        - `type ProteinSequenceRedesignStopResponseInputBinderProteinSequenceRedesignRunInputResponseGlobalDesignFilterExcludedSequenceMotifsDesignFilterResponse struct{…}`

          - `Motifs []string`

            Sequence motifs that must not occur. X matches any single residue.

          - `Type ExcludedSequenceMotifs`

            - `const ExcludedSequenceMotifsExcludedSequenceMotifs ExcludedSequenceMotifs = "excluded_sequence_motifs"`

      - `IdempotencyKey string`

      - `WorkspaceID string`

        Workspace to run this redesign in.

    - `type ProteinSequenceRedesignStopResponseInputGenericProteinSequenceRedesignRunInputResponse struct{…}`

      - `Entities []ProteinSequenceRedesignStopResponseInputGenericProteinSequenceRedesignRunInputResponseEntity`

        Every chain in the input CIF, assigned exactly once.

        - `ChainID string`

        - `Type FromTemplate`

          - `const FromTemplateFromTemplate FromTemplate = "from_template"`

        - `DesignMotifs []ProteinSequenceRedesignStopResponseInputGenericProteinSequenceRedesignRunInputResponseEntityDesignMotif`

          Residues to redesign. Omit this field to keep the chain fixed.

          - `Filters []ProteinSequenceRedesignStopResponseInputGenericProteinSequenceRedesignRunInputResponseEntityDesignMotifFilterUnion`

            Filters applied to this motif in addition to global_design_filters.

            - `type ProteinSequenceRedesignStopResponseInputGenericProteinSequenceRedesignRunInputResponseEntityDesignMotifFilterExcludedAminoAcidsDesignFilterResponse struct{…}`

              - `AminoAcids []string`

                Single-letter amino-acid codes that must not occur in the filtered designed region.

              - `Type ExcludedAminoAcids`

                - `const ExcludedAminoAcidsExcludedAminoAcids ExcludedAminoAcids = "excluded_amino_acids"`

            - `type ProteinSequenceRedesignStopResponseInputGenericProteinSequenceRedesignRunInputResponseEntityDesignMotifFilterMaxHydrophobicFractionDesignFilterResponse struct{…}`

              - `MaxFraction float64`

              - `Type MaxHydrophobicFraction`

                - `const MaxHydrophobicFractionMaxHydrophobicFraction MaxHydrophobicFraction = "max_hydrophobic_fraction"`

            - `type ProteinSequenceRedesignStopResponseInputGenericProteinSequenceRedesignRunInputResponseEntityDesignMotifFilterExcludedSequenceMotifsDesignFilterResponse struct{…}`

              - `Motifs []string`

                Sequence motifs that must not occur. X matches any single residue.

              - `Type ExcludedSequenceMotifs`

                - `const ExcludedSequenceMotifsExcludedSequenceMotifs ExcludedSequenceMotifs = "excluded_sequence_motifs"`

          - `Residues []int64`

            0-indexed residues to redesign on this chain.

          - `Type Residues`

            - `const ResiduesResidues Residues = "residues"`

      - `NumProteins int64`

        Number of unique filter-passing redesigned proteins to generate.

      - `Structure ProteinSequenceRedesignStopResponseInputGenericProteinSequenceRedesignRunInputResponseStructure`

        - `URL string`

          URL to download the file

        - `URLExpiresAt Time`

          When the presigned URL expires

      - `Type Generic`

        - `const GenericGeneric Generic = "generic"`

      - `GlobalDesignFilters []ProteinSequenceRedesignStopResponseInputGenericProteinSequenceRedesignRunInputResponseGlobalDesignFilterUnion`

        Filters applied to every redesigned region. When omitted, cysteine is excluded. Pass [] to disable global filters.

        - `type ProteinSequenceRedesignStopResponseInputGenericProteinSequenceRedesignRunInputResponseGlobalDesignFilterExcludedAminoAcidsDesignFilterResponse struct{…}`

          - `AminoAcids []string`

            Single-letter amino-acid codes that must not occur in the filtered designed region.

          - `Type ExcludedAminoAcids`

            - `const ExcludedAminoAcidsExcludedAminoAcids ExcludedAminoAcids = "excluded_amino_acids"`

        - `type ProteinSequenceRedesignStopResponseInputGenericProteinSequenceRedesignRunInputResponseGlobalDesignFilterMaxHydrophobicFractionDesignFilterResponse struct{…}`

          - `MaxFraction float64`

          - `Type MaxHydrophobicFraction`

            - `const MaxHydrophobicFractionMaxHydrophobicFraction MaxHydrophobicFraction = "max_hydrophobic_fraction"`

        - `type ProteinSequenceRedesignStopResponseInputGenericProteinSequenceRedesignRunInputResponseGlobalDesignFilterExcludedSequenceMotifsDesignFilterResponse struct{…}`

          - `Motifs []string`

            Sequence motifs that must not occur. X matches any single residue.

          - `Type ExcludedSequenceMotifs`

            - `const ExcludedSequenceMotifsExcludedSequenceMotifs ExcludedSequenceMotifs = "excluded_sequence_motifs"`

      - `IdempotencyKey string`

      - `WorkspaceID string`

        Workspace to run this redesign in.

  - `Livemode bool`

    Whether this resource was created with a live API key.

  - `Pipeline BoltzProteinRedesign`

    - `const BoltzProteinRedesignBoltzProteinRedesign BoltzProteinRedesign = "boltz-protein-redesign"`

  - `PipelineVersion V2026_07_14`

    - `const V2026_07_14V2026_07_14 V2026_07_14 = "v2026-07-14"`

  - `Progress ProteinSequenceRedesignStopResponseProgress`

    - `NumProteinsGenerated int64`

      Number of protein binders generated so far

    - `TotalProteinsToGenerate int64`

      Total number of protein binders requested

    - `LatestResultID string`

      ID of the most recently generated result

  - `StartedAt Time`

  - `Status ProteinSequenceRedesignStopResponseStatus`

    - `const ProteinSequenceRedesignStopResponseStatusPending ProteinSequenceRedesignStopResponseStatus = "pending"`

    - `const ProteinSequenceRedesignStopResponseStatusRunning ProteinSequenceRedesignStopResponseStatus = "running"`

    - `const ProteinSequenceRedesignStopResponseStatusSucceeded ProteinSequenceRedesignStopResponseStatus = "succeeded"`

    - `const ProteinSequenceRedesignStopResponseStatusFailed ProteinSequenceRedesignStopResponseStatus = "failed"`

    - `const ProteinSequenceRedesignStopResponseStatusStopped ProteinSequenceRedesignStopResponseStatus = "stopped"`

  - `StoppedAt Time`

  - `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"),
  )
  response, err := client.Protein.SequenceRedesign.Stop(context.TODO(), "id")
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", response.ID)
}
```

#### Response

```json
{
  "id": "id",
  "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",
  "engine": "boltz-protein-redesign",
  "engine_version": "v2026-07-14",
  "error": {
    "code": "code",
    "message": "message",
    "details": {}
  },
  "input": {
    "entities": [
      {
        "chain_id": "x",
        "role": "target",
        "type": "from_template"
      },
      {
        "chain_id": "x",
        "role": "target",
        "type": "from_template"
      }
    ],
    "num_proteins": 1,
    "structure": {
      "url": "https://example.com",
      "url_expires_at": "2019-12-27T18:11:19.117Z"
    },
    "type": "binder",
    "global_design_filters": [
      {
        "amino_acids": [
          "x"
        ],
        "type": "excluded_amino_acids"
      }
    ],
    "idempotency_key": "idempotency_key",
    "workspace_id": "workspace_id"
  },
  "livemode": true,
  "pipeline": "boltz-protein-redesign",
  "pipeline_version": "v2026-07-14",
  "progress": {
    "num_proteins_generated": 0,
    "total_proteins_to_generate": 1,
    "latest_result_id": "latest_result_id"
  },
  "started_at": "2019-12-27T18:11:19.117Z",
  "status": "pending",
  "stopped_at": "2019-12-27T18:11:19.117Z",
  "workspace_id": "workspace_id",
  "idempotency_key": "idempotency_key"
}
```
