---
title: "TaskOwner"
url: "https://developer-staging.agentsync.io/apis/platform-api/versions/8177e94d-86f2-48a5-8ed6-d5fbcb69f38a/schemas/TaskOwner"
---

> Full API specification: https://developer-staging.agentsync.io/apis/platform-api/versions/8177e94d-86f2-48a5-8ed6-d5fbcb69f38a.md

# TaskOwner

Who owns a task: a named person, or a queue that a role at an organization works from. A person whom the requirement set's rules hide from your organization is shown as the queue the task was written for instead; any other named owner is shown by personId. Absent when the task has no owner.

## OpenAPI definition

```yaml
openapi: 3.1.1
info:
  title: AgentSync Platform API
  version: 0.0.1
servers:
  - url: https://api.{environment}.agentsync.io/platform
    description: AgentSync API gateway
    variables:
      environment:
        default: sandbox
        enum:
          - sandbox
components:
  schemas:
    PersonId:
      type: string
      description: A person's ID, a TypeID with the prefix person.
      pattern: ^person_[0-7][0-9a-hjkmnp-tv-z]{25}$
      example: person_01h455vb4pex5vsknk084sn02q
    OrganizationId:
      type: string
      description: "An organization's ID: a TypeID with the prefix org. It never
        changes, and is the same ID for the organization across the AgentSync
        API."
      pattern: ^org_[0-7][0-9a-hjkmnp-tv-z]{25}$
      example: org_01h455vb4pex5vsknk084sn02q
    TaskOwner:
      type: object
      description: "Who owns a task: a named person, or a queue that a role at an
        organization works from. A person whom the requirement set's rules hide
        from your organization is shown as the queue the task was written for
        instead; any other named owner is shown by personId. Absent when the
        task has no owner."
      required:
        - kind
      properties:
        kind:
          type: string
          description: person when personId names the owner; queue when queue does.
          enum:
            - person
            - queue
          example: person
        personId:
          $ref: "#/components/schemas/PersonId"
        queue:
          type: object
          description: The queue that owns the task. Absent unless kind is queue.
          required:
            - organizationId
            - persona
          properties:
            organizationId:
              $ref: "#/components/schemas/OrganizationId"
            persona:
              type: string
              description: The role whose holders work the queue.
              example: compliance_reviewer
      example:
        kind: queue
        queue:
          organizationId: org_01h455vb4pex5vsknk084sn02q
          persona: compliance_reviewer
```
