---
updatedAt: 2026-06-01T16:03:30.000Z
agentTools:
  projectIndex: https://developers.smartrecruiters.com/llms.txt
---

# Creates a review

# OpenAPI definition

```json
{
  "openapi": "3.0.2",
  "info": {
    "description": "Reviews Public API",
    "version": "1.0.0",
    "title": "Reviews",
    "contact": {
      "name": "SmartRecruiters",
      "url": "https://developers.smartrecruiters.com"
    }
  },
  "tags": [
    {
      "name": "reviews",
      "description": "API to manage reviews"
    }
  ],
  "paths": {
    "/reviews": {
      "post": {
        "responses": {
          "201": {
            "description": "Review was created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Review"
                }
              }
            }
          },
          "401": {
            "description": "with codes:\n* **NOT_AUTHORIZED_TO_ACCESS_RESOURCE** when caller is not authorized to access resource\n* **REVIEWER_NOT_AUTHORIZED_TO_ACCESS_RESOURCE** when reviewer is not authorized to access resource\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden to create a review",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "When input validation fails or with codes:\n* **INVALID_OVERALL** when invalid overall\n* **NON_EXISTING_REVIEWER** when reviewer does not exist\n* **INACTIVE_OR_DELETED_REVIEWER** when reviewer is inactive or deleted\n* **CANDIDATE_NOT_FOUND** when candidate with given id not found\n* **JOB_NOT_FOUND** when job with given id not found\n* **APPLICATION_NOT_FOUND** when application for given candidate id and job id not found\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        },
        "tags": [
          "reviews"
        ],
        "summary": "Creates a review",
        "operationId": "reviews.create",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReviewInput"
              }
            }
          },
          "description": "Review to be created",
          "required": true
        },
        "security": [
          {
            "key": []
          },
          {
            "oauth": [
              "reviews_write"
            ]
          }
        ]
      }
    }
  },
  "components": {
    "responses": {
      "ServerError": {
        "description": "Unexpected error"
      }
    },
    "schemas": {
      "Uuid": {
        "type": "string",
        "format": "guid",
        "readOnly": true
      },
      "UserId": {
        "type": "string",
        "pattern": "[a-fA-F0-9]{24}"
      },
      "Review": {
        "type": "object",
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Uuid"
          },
          "candidateId": {
            "$ref": "#/components/schemas/Uuid"
          },
          "jobId": {
            "$ref": "#/components/schemas/Uuid"
          },
          "reviewerId": {
            "$ref": "#/components/schemas/UserId"
          },
          "overallRating": {
            "type": "integer"
          },
          "comment": {
            "type": "string"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "updatedOn": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "ReviewInput": {
        "type": "object",
        "required": [
          "candidateId",
          "jobId",
          "overallRating"
        ],
        "properties": {
          "reviewerId": {
            "$ref": "#/components/schemas/UserId"
          },
          "candidateId": {
            "$ref": "#/components/schemas/Uuid"
          },
          "jobId": {
            "$ref": "#/components/schemas/Uuid"
          },
          "overallRating": {
            "type": "integer",
            "minimum": 1,
            "maximum": 5
          },
          "comment": {
            "type": "string"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Error": {
        "type": "object",
        "required": [
          "code"
        ],
        "properties": {
          "code": {
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        }
      }
    },
    "securitySchemes": {
      "key": {
        "type": "apiKey",
        "in": "header",
        "name": "x-smarttoken"
      },
      "oauth": {
        "type": "oauth2",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://www.smartrecruiters.com/identity/oauth/allow",
            "tokenUrl": "https://api.smartrecruiters.com/identity/oauth/token",
            "scopes": {
              "reviews_read": "Access Reviews",
              "reviews_write": "Create, update and delete Reviews",
              "jobs_read": "Access Jobs"
            }
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://api.smartrecruiters.com/reviews-api/v201910"
    }
  ]
}
```