> For the complete documentation index, see [llms.txt](https://docs.godmode.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.godmode.space/api/api-reference.md). Agents can also search and read this documentation through its [MCP server](https://docs.godmode.space/~gitbook/mcp).

# API Reference

## Start a run

<mark style="color:green;">`POST`</mark> `https://api.godmode.space/api/rest/runs`

#### Request Body

| Name                                         | Type   | Description                            |
| -------------------------------------------- | ------ | -------------------------------------- |
| workflowId<mark style="color:red;">\*</mark> | UUID   | ID of Godmode Workflow                 |
| input<mark style="color:red;">\*</mark>      | Object | Input object for starting the workflow |

{% tabs %}
{% tab title="200: OK " %}
Example response

```json
{
    "data": {
        "run": {
            "id": "<uuid>"
            "status": "pending",
            "input": {},
            "output": null
        }
    }
}
```

{% endtab %}
{% endtabs %}

## Get a run by id

<mark style="color:blue;">`GET`</mark> `https://api.godmode.space/api/rest/runs/:id`

#### Path Parameters

| Name                                 | Type | Description       |
| ------------------------------------ | ---- | ----------------- |
| id<mark style="color:red;">\*</mark> | UUID | ID of Godmode Run |

{% tabs %}
{% tab title="200: OK " %}
Example response:

```json
{
    "run": {
        "id": "<uuid>"
        "status": "pending",
        "input": {},
        "output": null
    }
}
```

{% endtab %}
{% endtabs %}
