# org.tangled.ci.getWorkflowDefinition

- Kind: query
- Authority: ci.tangled.org
- Lexicon: 1
- Published by [tangled.org](https://lexicon.garden/identity/did:plc:wshs7t2adsemcrrd4snkeqli), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:wshs7t2adsemcrrd4snkeqli/org.tangled.ci.getWorkflowDefinition)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:wshs7t2adsemcrrd4snkeqli/org.tangled.ci.getWorkflowDefinition/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:wshs7t2adsemcrrd4snkeqli/org.tangled.ci.getWorkflowDefinition/analytics)

## Query (`org.tangled.ci.getWorkflowDefinition`)

Type: query · GET

### Parameters (query string)

- `repo` (string · did, required)
- `workflow` (string, required)
  - Constraints: minLength: 1, maxLength: 128

### Output (application/json)

- `workflow` (ref, required)
  - Reference: `org.tangled.ci.defs#workflow`

### Errors

- `InvalidRequest`: Invalid request parameters
- `RepoNotFound`: Repository not found
- `WorkflowNotFound`: Workflow not found

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "errors": [
        {
          "description": "Invalid request parameters",
          "name": "InvalidRequest"
        },
        {
          "description": "Repository not found",
          "name": "RepoNotFound"
        },
        {
          "description": "Workflow not found",
          "name": "WorkflowNotFound"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "workflow": {
              "ref": "org.tangled.ci.defs#workflow",
              "type": "ref"
            }
          },
          "required": [
            "workflow"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "repo": {
            "format": "did",
            "type": "string"
          },
          "workflow": {
            "maxLength": 128,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "repo",
          "workflow"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "org.tangled.ci.getWorkflowDefinition",
  "lexicon": 1
}
```
