> For the complete documentation index, see [llms.txt](https://kilavuz.cubicl.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kilavuz.cubicl.io/api-entegrasyonu/is-akislari.md).

# İş Akışları

Kurum iş akışlarını getirir.

## İş akışlarını getir

> Kurumdaki iş akışlarını getirir. \`groupId\` verilirse yalnızca o projeden başlayan iş akışları döner.

```json
{"openapi":"3.0.3","info":{"title":"Cubicl API","version":"1.0.0"},"tags":[{"name":"İş akışları","description":"Kurum iş akışlarını getirir."}],"servers":[{"url":"https://cubicl.io/api/v1","description":"Cubicl production API"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Entegrasyonlar sayfasından alınan erişim jetonu. Header: `Authorization: Bearer ERİŞİM_JETONUNUZ`."}},"schemas":{"ObjectId":{"type":"string","description":"MongoDB ObjectId"},"WorkflowList":{"type":"array","items":{"$ref":"#/components/schemas/Workflow"}},"Workflow":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"name":{"type":"string"},"org":{"type":"string"},"taskTemplates":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowTaskTemplate"}},"createdAt":{"$ref":"#/components/schemas/UnixTimestamp"},"updatedAt":{"$ref":"#/components/schemas/UnixTimestamp"}}},"WorkflowTaskTemplate":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"desc":{"type":"string"},"group":{"type":"string"},"assignees":{"type":"array","items":{"type":"string"}},"createdBy":{"type":"string"}}},"UnixTimestamp":{"type":"number","description":"Unix zaman damgası (saniye)"},"ErrorCode":{"type":"object","required":["code"],"properties":{"code":{"type":"integer","description":"Uygulama hata kodu. HTTP durum kodu değildir."}}}},"responses":{"ForbiddenCode":{"description":"İzin yok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorCode"}}}}}},"paths":{"/workflows":{"get":{"tags":["İş akışları"],"summary":"İş akışlarını getir","operationId":"listWorkflows","description":"Kurumdaki iş akışlarını getirir. `groupId` verilirse yalnızca o projeden başlayan iş akışları döner.","parameters":[{"name":"groupId","in":"query","schema":{"$ref":"#/components/schemas/ObjectId"},"description":"İlk aşaması bu projede olan iş akışlarını süzmek için proje ID'si"}],"responses":{"200":{"description":"İş akışı listesi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowList"}}}},"403":{"$ref":"#/components/responses/ForbiddenCode"}}}}}}
```

## ID'ye göre iş akışı getir

> Verilen ID'ye sahip iş akışını getirir.

```json
{"openapi":"3.0.3","info":{"title":"Cubicl API","version":"1.0.0"},"tags":[{"name":"İş akışları","description":"Kurum iş akışlarını getirir."}],"servers":[{"url":"https://cubicl.io/api/v1","description":"Cubicl production API"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Entegrasyonlar sayfasından alınan erişim jetonu. Header: `Authorization: Bearer ERİŞİM_JETONUNUZ`."}},"parameters":{"IdPath":{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"},"description":"Kayıt ID'si"}},"schemas":{"ObjectId":{"type":"string","description":"MongoDB ObjectId"},"Workflow":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/ObjectId"},"name":{"type":"string"},"org":{"type":"string"},"taskTemplates":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowTaskTemplate"}},"createdAt":{"$ref":"#/components/schemas/UnixTimestamp"},"updatedAt":{"$ref":"#/components/schemas/UnixTimestamp"}}},"WorkflowTaskTemplate":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"desc":{"type":"string"},"group":{"type":"string"},"assignees":{"type":"array","items":{"type":"string"}},"createdBy":{"type":"string"}}},"UnixTimestamp":{"type":"number","description":"Unix zaman damgası (saniye)"},"ErrorCode":{"type":"object","required":["code"],"properties":{"code":{"type":"integer","description":"Uygulama hata kodu. HTTP durum kodu değildir."}}},"ValidationError":{"type":"object","properties":{"message":{"type":"string"},"errors":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}}}}},"responses":{"ForbiddenCode":{"description":"İzin yok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorCode"}}}},"ValidationFailed":{"description":"Doğrulama başarısız","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}}}},"paths":{"/workflows/{id}":{"get":{"tags":["İş akışları"],"summary":"ID'ye göre iş akışı getir","operationId":"getWorkflow","description":"Verilen ID'ye sahip iş akışını getirir.","parameters":[{"$ref":"#/components/parameters/IdPath"}],"responses":{"200":{"description":"İş akışı detayları","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Workflow"}}}},"403":{"$ref":"#/components/responses/ForbiddenCode"},"404":{"description":"Kaynak bulunamadı"},"422":{"$ref":"#/components/responses/ValidationFailed"}}}}}}
```
