# Get reassign request

Get a reassignment request

# OpenAPI definition

````json
{
  "openapi": "3.1.1",
  "servers": [
    {
      "url": "https://api.cm.com/sign/v1"
    },
    {
      "url": "https://api.cm.com/sign-sandbox/v1"
    }
  ],
  "security": [
    {
      "JWT": []
    }
  ],
  "info": {
    "version": "1",
    "title": "Sign API",
    "description": "Sign by CM.com offers the ability to have end users sign PDF documents online.\n\nBefore you can start using the API, you need to be provided with credentials. You will have received these credentials, consisting of a Key and a Key Id, when you registered for Sign. If you have not yet received any credentials, you can request them via [this link](https://www.cm.com/app/verification-registration/sign). This will grant you access to the sandbox environment.\n\n*The credentials provided by CM.com are confidential and should be kept secret.*\n"
  },
  "tags": [
    {
      "name": "Reassign Request",
      "description": "Manage reassignment requests"
    }
  ],
  "paths": {
    "/reassignrequests/{id}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ReassignRequestId"
        }
      ],
      "get": {
        "operationId": "get_reassignrequest",
        "summary": "Get reassign request",
        "description": "Get a reassignment request",
        "tags": [
          "Reassign Request"
        ],
        "responses": {
          "200": {
            "description": "Reassign request has been retrieved",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReassignRequest"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    }
  },
  "components": {
    "responses": {
      "NotFound": {
        "description": "The specified resource was not found",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            }
          }
        }
      },
      "Unauthorized": {
        "description": "Unauthorized",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            }
          }
        }
      }
    },
    "parameters": {
      "ReassignRequestId": {
        "name": "id",
        "in": "path",
        "schema": {
          "type": "string"
        },
        "required": true,
        "description": "A unique uuid string that identifies a reassign request.",
        "example": "6f8d0a9d-b85c-4c3f-9e69-5699f1e00f49"
      }
    },
    "schemas": {
      "ErrorResponse": {
        "title": "Error Response",
        "type": "object",
        "properties": {
          "status": {
            "type": "integer",
            "format": "int32",
            "description": "Response status code, should match HTTP error code"
          },
          "message": {
            "type": "string",
            "description": "High level description of the error that occurred. This description, when present, can be shown to the end user. It might describe that the system is not available, or that an unexpected error occurred. In test mode, the API will return more information (targeted at the developer) here than in production mode."
          }
        }
      },
      "FileReference": {
        "type": "string",
        "format": "uuid",
        "description": "A unique reference number for this file.",
        "examples": [
          "8d817359-7eb8-4b6e-9030-17ac286b7dc0"
        ]
      },
      "Locale": {
        "type": "string",
        "enum": [
          "de-DE",
          "en-US",
          "es-ES",
          "fr-FR",
          "hu-HU",
          "it-IT",
          "ja-JP",
          "nl-NL",
          "pl-PL",
          "pt-PT",
          "ro-RO",
          "sk-SK"
        ],
        "default": "en-US"
      },
      "InviteeId": {
        "$ref": "#/components/schemas/InviteeReference",
        "readOnly": true
      },
      "InviteeReference": {
        "description": "Optional. Indicates that only a particular invitee is allowed/required to use a field.",
        "type": "string",
        "format": "uuid",
        "examples": [
          "c6f7eb6f-7414-4f5e-9096-85c6c5a48f84"
        ]
      },
      "InviteeBase": {
        "title": "Invitee",
        "description": "An invitee is someone who has been invited to review and/or sign the dossier.",
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of the person invited to read and/or sign the document",
            "maxLength": 255,
            "examples": [
              "Peter Invitee"
            ]
          },
          "email": {
            "type": "string",
            "format": "email",
            "description": "A valid email address",
            "maxLength": 255
          },
          "locale": {
            "$ref": "#/components/schemas/Locale",
            "description": "Locale of the language to be used in invitations.",
            "nullable": true
          },
          "position": {
            "type": "integer",
            "description": "Set the order of signing. For example if there are two invitees set position `1` for the first invitee and position `2` for the second invitee. It is possible to set multiple invitees on the same position. Make sure there is no gap between the positions.",
            "examples": [
              1
            ]
          },
          "authenticationMethods": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "otp_sms",
                "otp_email",
                "otp_whatsapp",
                "otp_voice"
              ],
              "description": "Additional user authentication is required before the user can view the dossier. Please note that this is only available when configured for your account."
            }
          },
          "identificationMethod": {
            "$ref": "#/components/schemas/IdentificationMethod",
            "deprecated": true
          },
          "identificationMethods": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IdentificationMethod"
            }
          },
          "notifications": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string",
              "enum": [
                "invite",
                "signed",
                "reviewed",
                "declined",
                "completed"
              ],
              "description": "Determines which notifications should be sent over the configured channel. By default all notifications are sent."
            }
          },
          "payments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Payment"
            },
            "description": "Additional payment is required. Please note that this is only available when configured for your account."
          },
          "phoneNumber": {
            "type": "string",
            "description": "The phone number of the invitee in E.164 format. Required when identificationMethod is otp.",
            "examples": [
              "+31601234567"
            ]
          },
          "reference": {
            "type": "string",
            "description": "A reference to an external identifier of your invitee.",
            "maxLength": 255,
            "examples": [
              "6c38955e-7324-41e7-97dd-0bcf55e275e2"
            ]
          },
          "readOnly": {
            "type": "boolean",
            "description": "Indicates that this invitee needs to review the dossier, instead of signing it",
            "default": false
          },
          "state": {
            "type": "string",
            "enum": [
              "approved",
              "declined"
            ],
            "description": "The invitee has approved or declined the dossier"
          },
          "stateComment": {
            "type": [
              "string",
              "null"
            ],
            "description": "When the invitee declined the dossier this field may contain the reason for declining.",
            "default": null,
            "readOnly": true,
            "examples": [
              null
            ]
          },
          "stateChanged": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "The date the invitee state has changed",
            "default": null,
            "readOnly": true,
            "examples": [
              null
            ]
          },
          "redirectUrl": {
            "type": [
              "string",
              "null"
            ],
            "format": "url",
            "description": "URL to redirect the invitee to after signing, approving or declining the dossier. If not set, the default confirmation page will be shown.",
            "default": null
          },
          "fields": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Field"
            }
          }
        },
        "required": [
          "name"
        ]
      },
      "Invitee": {
        "allOf": [
          {
            "type": "object",
            "properties": {
              "id": {
                "$ref": "#/components/schemas/InviteeId"
              }
            },
            "required": [
              "id"
            ]
          },
          {
            "$ref": "#/components/schemas/InviteeBase"
          }
        ]
      },
      "FieldId": {
        "$ref": "#/components/schemas/FieldReference",
        "readOnly": true
      },
      "FieldReference": {
        "type": "string",
        "format": "uuid",
        "description": "Unique Id of a field",
        "examples": [
          "50ee1534-6172-4228-84e8-653c6f65eaf0"
        ]
      },
      "FieldType": {
        "type": "string",
        "description": "The type of field for the invitee.",
        "enum": [
          "signature",
          "signatureDate",
          "initials",
          "text",
          "textarea",
          "label",
          "checkbox",
          "radio",
          "stamp"
        ],
        "examples": [
          "signature"
        ]
      },
      "FieldBase": {
        "title": "Field",
        "type": "object",
        "properties": {
          "type": {
            "$ref": "#/components/schemas/FieldType"
          },
          "required": {
            "type": "boolean",
            "examples": [
              true
            ],
            "default": true,
            "description": "Indicates if the field is required and must be filled in by the user. When required is `true` and type is `checkbox` the field must be checked. For the `checkbox` type, the default value is `false`."
          },
          "file": {
            "$ref": "#/components/schemas/FileReference"
          },
          "tag": {
            "type": "string",
            "examples": [
              "{signature1}"
            ],
            "maxLength": 64,
            "description": "The tag acts as a placeholder; the range and locations of the field are automatically determined based on the location(s) of the tag in the document. Add the tag to every page the field should include in case of initials. The tag should be hidden, for example by making it white."
          },
          "tagRequired": {
            "type": "boolean",
            "examples": [
              true
            ],
            "default": true,
            "description": "Indicates if the tag must be present in the document. When this is set to `false` and the tag is not found in the document it will skip this field."
          },
          "locations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FieldLocation"
            }
          },
          "invitee": {
            "$ref": "#/components/schemas/InviteeReference",
            "readOnly": true
          }
        },
        "required": [
          "type",
          "file"
        ]
      },
      "FieldLocation": {
        "type": "object",
        "properties": {
          "range": {
            "type": "string",
            "pattern": "^\\d+(-\\d+)?$",
            "maxLength": 64,
            "description": "The page number within the PDF that this field occupies (e.g. `1`), or range for a initials field (e.g. `1-3`).",
            "examples": [
              "1"
            ]
          },
          "x": {
            "type": "number",
            "format": "float",
            "description": "X position of the field in points."
          },
          "y": {
            "type": "number",
            "format": "float",
            "description": "Y position of the field in points."
          },
          "width": {
            "type": "number",
            "format": "float",
            "description": "Width of the field in points."
          },
          "height": {
            "type": "number",
            "format": "float",
            "description": "Height of the field in points."
          }
        }
      },
      "Field": {
        "allOf": [
          {
            "type": "object",
            "properties": {
              "id": {
                "$ref": "#/components/schemas/FieldId"
              }
            },
            "required": [
              "id"
            ]
          },
          {
            "$ref": "#/components/schemas/FieldBase"
          }
        ]
      },
      "Payment": {
        "title": "Payment",
        "type": "object",
        "properties": {
          "amount": {
            "type": "integer",
            "description": "The payment amount in cents",
            "minimum": 1,
            "examples": [
              100
            ]
          },
          "currency": {
            "type": "string",
            "enum": [
              "EUR"
            ],
            "description": "The payment currency"
          }
        },
        "required": [
          "amount",
          "currency"
        ]
      },
      "IdentificationMethod": {
        "type": "string",
        "enum": [
          "idin",
          "iban",
          "otp_sms",
          "otp_email",
          "otp_whatsapp",
          "otp_voice",
          "qualified"
        ],
        "examples": [
          "idin"
        ],
        "description": "Additional user identification is required. When you select `qualified` it cannot be used with other identification methods. Please note that this is only available when configured for your account."
      },
      "ReassignRequest": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the reassign request",
            "examples": [
              "6f8d0a9d-b85c-4c3f-9e69-5699f1e00f49"
            ]
          },
          "url": {
            "type": "string",
            "format": "url",
            "description": "Url to open the reassign request.",
            "examples": [
              "https://www.cm.com/app/sign/reassign/review/cFoU7JAiY3xZAAGdd43j64K6eNtLTmn8W89iwdew09qsQnaiZF6UzAFriB8ZaUfE0CtVr7UZXCcIjVRqZl7yBWIyUNAnX1NpAqgD"
            ]
          },
          "state": {
            "type": "string",
            "description": "State of the reassign request",
            "$ref": "#/components/schemas/ReassignRequestState",
            "examples": [
              "pending"
            ]
          },
          "dossier": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "description": "ID of the dossier",
                "examples": [
                  "6f8d0a9d-b85c-4c3f-9e69-5699f1e00f49"
                ]
              },
              "name": {
                "type": "string",
                "description": "Name of the dossier",
                "examples": [
                  "Employment contract"
                ]
              },
              "owner": {
                "type": "string",
                "description": "Name of the team, if the dossier was sent on behalf of a team, or the dossier owner",
                "examples": [
                  "Human Resources"
                ]
              }
            }
          },
          "originalInvitee": {
            "$ref": "#/components/schemas/Invitee"
          },
          "newInvitee": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "description": "Name of the new invitee",
                "examples": [
                  "John Doe"
                ]
              },
              "email": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "email",
                "description": "Email of the new invitee.",
                "examples": [
                  "example@email.com"
                ]
              },
              "phoneNumber": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The phone number of the new invitee in E.164 format.",
                "examples": [
                  "+31612345678"
                ]
              },
              "message": {
                "type": [
                  "string",
                  "null"
                ],
                "maxLength": 1000,
                "description": "The custom message to be sent to the new invitee.",
                "examples": [
                  "Please sign John"
                ]
              }
            }
          },
          "reason": {
            "type": "string",
            "description": "The reason for requesting reassignment.",
            "examples": [
              "Reassigning to my secretary to sign in my place"
            ]
          },
          "declineReason": {
            "type": [
              "string",
              "null"
            ],
            "description": "The reason for declining the reassign request. Required when declining the reassign request.",
            "examples": [
              "We need you to personally sign this dossier"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "The date the reassignment was requested in ISO 8601 format.",
            "examples": [
              "2024-01-01T00:00:00+00:00"
            ]
          }
        }
      },
      "ReassignRequestState": {
        "type": "string",
        "enum": [
          "approved",
          "declined",
          "pending"
        ]
      }
    },
    "securitySchemes": {
      "JWT": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "description": "In order to authenticate you need to use your credentials to generate a JWT Bearer token. The [JWT token](https://jwt.io/introduction/) has to be generated using the `HS256` algorithm and your credentials. This JWT has to contain the following attributes: `iat`, `nbf`, `exp`  in the payload, as well as the attribute `kid` in the header of the JWT. This `kid` attribute needs to contain the Key Id of your credentials.\n\nThe generated token needs to be passed via the HTTP Authorization header like:\n\n```\nAuthorization: Bearer GENERATED_TOKEN_HERE\n```\n\nThere are many libraries available for different programming languages that can help you to generate a JWT. See the Libraries tab on [https://jwt.io](https://jwt.io)\n"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 106,
      "1": 177,
      "2": 26,
      "3": 196,
      "4": 252,
      "5": 46,
      "6": 219,
      "7": 163,
      "8": 234,
      "9": 51,
      "10": 132,
      "11": 96
    }
  }
}
````