---
updatedAt: 2025-02-19T21:54:55.000Z
agentTools:
  projectIndex: https://readme.teamogy.com/llms.txt
---

# Read job

Returns job data according the query parameters

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "1.0.0",
    "title": "Teamogy API"
  },
  "servers": [
    {
      "url": "https://{host}/"
    }
  ],
  "paths": {
    "/rest/v1/{agencyId}/jobs": {
      "get": {
        "tags": [
          "Jobs API"
        ],
        "summary": "Read job",
        "description": "Returns job data according the query parameters",
        "operationId": "pubGetJobs",
        "security": [
          {
            "TeamogyTokenAPIAuthorizer": []
          }
        ],
        "parameters": [
          {
            "name": "host",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Specific domain your company have registered. For example 'yourcompany.teamogy.com'"
          },
          {
            "name": "agencyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "ID of the Business Unit"
          },
          {
            "name": "id",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "description": "ID of job"
          },
          {
            "name": "number",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Registration number of job"
          },
          {
            "name": "type",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Type of job"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PubJobCurrent"
                }
              }
            }
          }
        },
        "x-public": true,
        "x-amazon-apigateway-integration": {
          "uri": "http://api.test.com:9443/rest/r/v1/{agencyId}/jobs",
          "responses": {
            "default": {
              "statusCode": 200
            }
          },
          "requestParameters": {
            "integration.request.header.X-Forwarded-Host": "method.request.header.host",
            "integration.request.path.agencyId": "method.request.path.agencyId",
            "integration.request.querystring.id": "method.request.querystring.id",
            "integration.request.querystring.number": "method.request.querystring.number",
            "integration.request.querystring.type": "method.request.querystring.type"
          },
          "passthroughBehavior": "when_no_match",
          "connectionType": "VPC_LINK",
          "connectionId": "${stageVariables.VPCLink}",
          "httpMethod": "GET",
          "type": "http_proxy"
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "TeamogyTokenAPIAuthorizer": {
        "type": "apiKey",
        "name": "Authorization",
        "in": "header",
        "x-amazon-apigateway-authtype": "custom",
        "x-amazon-apigateway-authorizer": {
          "authorizerUri": "arn:aws:apigateway:eu-central-1:lambda:path/2015-03-31/functions/arn:aws:lambda:eu-central-1:468062090586:function:TeamogyTokenAPIAuthorizer/invocations",
          "authorizerResultTtlInSeconds": 0,
          "type": "token"
        }
      }
    },
    "schemas": {
      "DbElement": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "version": {
            "type": "integer",
            "format": "int64"
          },
          "isDisabled": {
            "type": "boolean"
          },
          "isDraft": {
            "type": "boolean"
          }
        }
      },
      "DbElementEntity": {
        "allOf": [
          {
            "$ref": "#/components/schemas/DbElement"
          },
          {
            "type": "object",
            "properties": {
              "authorId": {
                "type": "integer",
                "format": "int64"
              }
            }
          }
        ]
      },
      "AccessControl": {
        "type": "object",
        "properties": {
          "readOnly": {
            "type": "boolean"
          },
          "acl": {
            "$ref": "#/components/schemas/Acl"
          }
        }
      },
      "JobItem": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Amounts"
          },
          {
            "$ref": "#/components/schemas/DbElement"
          },
          {
            "type": "object",
            "properties": {
              "jobId": {
                "type": "integer",
                "format": "int64"
              },
              "name": {
                "type": "string"
              },
              "category": {
                "type": "string"
              },
              "comment": {
                "type": "string"
              },
              "number": {
                "type": "integer"
              },
              "deadline": {
                "type": "string",
                "format": "date"
              },
              "isLocked": {
                "type": "boolean"
              },
              "isManual": {
                "type": "boolean"
              },
              "status": {
                "type": "string"
              },
              "documents": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/FinDocument"
                }
              }
            }
          }
        ]
      },
      "Amounts": {
        "type": "object",
        "required": [
          "billingAmount",
          "billingQuote",
          "cashflowAmount",
          "costAmount",
          "costOrder",
          "costQuote",
          "marginAmount",
          "marginQuote",
          "profitAmount",
          "workAmount",
          "workHoursQuote",
          "workHours",
          "workQuote",
          "workRateAmount",
          "workRateQuote"
        ],
        "properties": {
          "billingQuote": {
            "type": "number"
          },
          "billingAmount": {
            "type": "number"
          },
          "costQuote": {
            "type": "number"
          },
          "costOrder": {
            "type": "number"
          },
          "costAmount": {
            "type": "number"
          },
          "marginQuote": {
            "type": "number"
          },
          "marginAmount": {
            "type": "number"
          },
          "workQuote": {
            "type": "number"
          },
          "workAmount": {
            "type": "number"
          },
          "workRateAmount": {
            "type": "number"
          },
          "workRateQuote": {
            "type": "number"
          },
          "workHoursQuote": {
            "type": "number"
          },
          "workHours": {
            "type": "number"
          },
          "profitAmount": {
            "type": "number"
          },
          "cashflowAmount": {
            "type": "number"
          }
        }
      },
      "FinDocument": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Amounts"
          },
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "integer",
                "format": "int64"
              },
              "companyName": {
                "type": "string"
              },
              "type": {
                "type": "string"
              },
              "number": {
                "type": "string"
              },
              "status": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "createdTimestamp": {
                "type": "string",
                "format": "date-time"
              },
              "rows": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/FinDocumentRow"
                }
              }
            }
          }
        ]
      },
      "Acl": {
        "type": "object",
        "properties": {
          "basic": {
            "$ref": "#/components/schemas/AclCategory"
          },
          "process": {
            "$ref": "#/components/schemas/AclCategory"
          },
          "custom": {
            "$ref": "#/components/schemas/AclCategory"
          }
        }
      },
      "FinDocumentRow": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Amounts"
          },
          {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "number": {
                "type": "integer"
              },
              "timeId": {
                "type": "integer",
                "format": "int64"
              }
            }
          }
        ]
      },
      "AclPermission": {
        "type": "object",
        "properties": {
          "users": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "description": "Array of User IDs"
          },
          "groups": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "description": "Array of Group IDs"
          }
        }
      },
      "AclCategory": {
        "type": "object",
        "properties": {
          "read": {
            "$ref": "#/components/schemas/AclPermission"
          },
          "write": {
            "$ref": "#/components/schemas/AclPermission"
          }
        }
      },
      "PubJobCurrent": {
        "allOf": [
          {
            "$ref": "#/components/schemas/DbElementEntity"
          },
          {
            "$ref": "#/components/schemas/PubJobBase"
          },
          {
            "$ref": "#/components/schemas/AccessControl"
          },
          {
            "type": "object",
            "properties": {
              "authorId": {
                "type": "integer",
                "format": "int64"
              }
            }
          }
        ]
      },
      "PubJobBase": {
        "allOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "description": "Type of Job created (Type MUST match Teamogy configuration)"
              },
              "agencyId": {
                "type": "integer",
                "format": "int64",
                "description": "ID of the Business Unit to which the Job belongs (optional, if not defined, agencyId from URL will be used)"
              },
              "ownerId": {
                "type": "integer",
                "format": "int64",
                "description": "ID of the User who is the Owner of the Document"
              },
              "ownerName": {
                "type": "string",
                "description": "Name of the User who is the Owner of the Document"
              },
              "companyId": {
                "type": "integer",
                "format": "int64",
                "description": "ID of the Company that is the counterparty to the Document"
              },
              "companyName": {
                "type": "string",
                "description": "Name of the Company that is the counterparty to the Document"
              },
              "brandId": {
                "type": "integer",
                "format": "int64"
              },
              "binderId": {
                "type": "integer",
                "format": "int64",
                "description": "ID of the Binder in which the Job will be included (optional)"
              },
              "tags": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Array of Job Tags (optional)"
              },
              "participantIds": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "format": "int64"
                }
              },
              "number": {
                "type": "string",
                "description": "Job Registration Number (optional)"
              },
              "status": {
                "type": "string",
                "description": "Job Status (optional, Status MUST match Teamogy configuration)"
              },
              "statusDate": {
                "type": "string",
                "format": "date",
                "description": "Date of Job Status (optional)"
              },
              "category": {
                "type": "string",
                "description": "Job Category (optional, Category MUST match Teamogy configuration)"
              },
              "startDate": {
                "type": "string",
                "format": "date"
              },
              "startTime": {
                "type": "string",
                "format": "partial-time"
              },
              "endDate": {
                "type": "string",
                "format": "date"
              },
              "endTime": {
                "type": "string",
                "format": "partial-time"
              },
              "jobItems": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/JobItem"
                }
              },
              "properties": {
                "type": "object",
                "additionalProperties": true,
                "description": "Another Job properties (optional fields, field names and value types MUST match Teamogy configuration)"
              }
            }
          }
        ]
      }
    }
  },
  "x-amazon-apigateway-request-validators": {
    "Validate body, query string parameters, and headers": {
      "validateRequestParameters": true,
      "validateRequestBody": true
    }
  },
  "x-amazon-apigateway-minimum-compression-size": 10000,
  "x-amazon-apigateway-binary-media-types": [
    "multipart/form-data",
    "application/octet-stream",
    "application/pdf",
    "image/*",
    "audio/*",
    "video/*",
    "application/msword",
    "application/rtf",
    "application/vnd.ms-excel",
    "application/vnd.ms-powerpoint",
    "application/vnd.openxmlformats-officedocument.presentationml.presentation",
    "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
    "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
    "text/csvText",
    "text/plain",
    "application/x-zip-compressed",
    "application/zip",
    "application/rar"
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```