# org.tangled.ci.listWorkflowDefinitions

> Published by [tangled.org](https://lexicon.garden/identity/did:plc:wshs7t2adsemcrrd4snkeqli)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:wshs7t2adsemcrrd4snkeqli/org.tangled.ci.listWorkflowDefinitions)
- [Documentation](https://lexicon.garden/lexicon/did:plc:wshs7t2adsemcrrd4snkeqli/org.tangled.ci.listWorkflowDefinitions/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:wshs7t2adsemcrrd4snkeqli/org.tangled.ci.listWorkflowDefinitions/examples)

## Definitions

### `org.tangled.ci.listWorkflowDefinitions`

**Type**: `query`

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `ref` | `string` | No |  |
| `repo` | `string` (did) | Yes |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `workflows` | `array` | Yes |  |

#### Errors

- **InvalidRequest**: Invalid request parameters
- **RepoNotFound**: Repository not found
- **RefNotFound**: No branch or tag of the repository has this name

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "errors": [
        {
          "description": "Invalid request parameters",
          "name": "InvalidRequest"
        },
        {
          "description": "Repository not found",
          "name": "RepoNotFound"
        },
        {
          "description": "No branch or tag of the repository has this name",
          "name": "RefNotFound"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "workflows": {
              "items": {
                "ref": "org.tangled.ci.defs#workflow",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "workflows"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "ref": {
            "default": "HEAD",
            "maxLength": 256,
            "type": "string"
          },
          "repo": {
            "format": "did",
            "type": "string"
          }
        },
        "required": [
          "repo"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "org.tangled.ci.listWorkflowDefinitions",
  "lexicon": 1
}
```
