---
updatedAt: 2026-05-14T14:32:15.000Z
agentTools:
  projectIndex: https://docs.oysterhr.com/v0.1/llms.txt
---

# Verify agreement

This API endpoint verifies a hiring agreement.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Endpoints",
    "version": "v0.1"
  },
  "components": {
    "securitySchemes": {
      "bearer_auth": {
        "type": "http",
        "scheme": "bearer"
      }
    },
    "schemas": {
      "agreement": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "state": {
            "enum": [
              "PENDING",
              "DRAFT",
              "VERIFIED",
              "READY_TO_SIGN",
              "SIGNED"
            ]
          },
          "type": {
            "type": "string"
          },
          "parties": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "COMPANY",
                "TEAM_MEMBER",
                "OYSTER"
              ]
            }
          },
          "preview": {
            "type": "object",
            "properties": {
              "url": {
                "type": "string"
              },
              "contentType": {
                "type": "string"
              }
            }
          }
        },
        "required": [
          "id",
          "name",
          "state",
          "type",
          "parties"
        ]
      }
    }
  },
  "paths": {
    "/v0.1/hiring/employments/{id}/agreements/{agreement_id}/verify": {
      "post": {
        "summary": "Verify agreement",
        "tags": [
          "Employments"
        ],
        "description": "This API endpoint verifies a hiring agreement.",
        "security": [
          {
            "bearer_auth": [
              "manage"
            ]
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Employment ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "agreement_id",
            "in": "path",
            "description": "Agreement ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful",
            "content": {
              "application/json": {
                "examples": {
                  "Successful": {
                    "value": {
                      "data": {
                        "id": "A6fda22e",
                        "name": "Employment Agreement",
                        "type": "EMPLOYMENT_AGREEMENT",
                        "parties": [
                          "TEAM_MEMBER"
                        ],
                        "state": "VERIFIED",
                        "preview": {
                          "url": "http://localhost:3000/h/documents/agreements/A6fda22e",
                          "contentType": "application/pdf"
                        }
                      }
                    }
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/agreement"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "422": {
            "description": "The agreement can't be verified",
            "content": {
              "application/json": {
                "examples": {
                  "The agreement does not exist, or no permission to access it": {
                    "value": {
                      "errors": [
                        {
                          "message": "Agreement not found."
                        }
                      ]
                    }
                  },
                  "The agreement cannot be verified": {
                    "value": {
                      "errors": [
                        {
                          "message": "The automated Oyster Service Agreement can only be verified by Oyster staff."
                        }
                      ]
                    }
                  },
                  "The agreement has new changes": {
                    "value": {
                      "errors": [
                        {
                          "message": "The agreement has new changes. Only the newest version can be verified."
                        }
                      ]
                    }
                  },
                  "Onboarding form is not completed": {
                    "value": {
                      "errors": [
                        {
                          "message": "The onboarding form must be completed before verifying any agreement."
                        }
                      ]
                    }
                  },
                  "Oyster service agreement is not signed": {
                    "value": {
                      "errors": [
                        {
                          "message": "The Oyster Service Agreement must be finalized before verifying any other agreement."
                        }
                      ]
                    }
                  },
                  "The agreement can't be verified": {
                    "value": {
                      "errors": [
                        {
                          "message": "The agreement is pending. Only draft agreements can be verified."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://api.oysterhr.com",
      "description": "Production server"
    },
    {
      "url": "https://api-sandbox.oysterhr.com",
      "description": "Sandbox server"
    }
  ]
}
```