Sign M2M
POST/v4/applications/:appId/envs/:appEnv/m2m/:m2mId/sign
This endpoint allows signing a document using the M2M (Machine-to-Machine) process.
Request
Path Parameters
The application identifier which is used to identify the application used.
Possible values: [DEVELOPMENT
, STAGING
, PRODUCTION
]
The execution environment of the application where request are executed.
The unique identifier of the M2M to use.
- application/json
Body
- IgniSign_SignM2MDocumentHashRequestDto
- IgniSign_SignM2MDocumentContentRequestDto
- IgniSign_SignM2MDocumentXMLRequestDto
- IgniSign_SignM2MDocumentJSONRequestDto
document
object
required
anyOf
Possible values: [PDF
, PDF_ENCRYPTED
, FILE
, DATA_JSON
, DATA_XML
, PRIVATE_FILE
]
Represents the type of document that can be signed to the Ignisign application.
Possible values: [PDF
, PDF_ENCRYPTED
, FILE
, DATA_JSON
, DATA_XML
, PRIVATE_FILE
]
Represents the type of document that can be signed to the Ignisign application.
Possible values: [PDF
, PDF_ENCRYPTED
, FILE
, DATA_JSON
, DATA_XML
, PRIVATE_FILE
]
Represents the type of document that can be signed to the Ignisign application.
Possible values: [PDF
, PDF_ENCRYPTED
, FILE
, DATA_JSON
, DATA_XML
, PRIVATE_FILE
]
Represents the type of document that can be signed to the Ignisign application.
Responses
- 200
- 400
- 401
- 403
- 500
The M2M signature response.
- application/json
- Schema
- Example (from schema)
Schema
{
"signatureRequestId": "string",
"documentId": "string",
"documentHash": "string"
}
Bad request error
- application/json
- Schema
- Example (from schema)
Schema
The main message related to the error. It should provide an explanation or additional information about the error.
The timestamp when the error occurred, represented in UTC. It follows the format 'YYYY-MM-DD HH:mm:ss ZZ'.
The HTTP status code associated with the error. It indicates the status of the corresponding HTTP response.
The error code. It should be one of the IGNISIGN_ERROR_CODES (not linked here due to the high number of possible codes).
Additional contextual information related to the error. This object can contain any relevant properties.
{
"message": "string",
"timestamp": "2024-07-29T15:51:28.071Z",
"status": 0,
"code": "string",
"context": {}
}
Unauthorized error
- application/json
- Schema
- Example (from schema)
Schema
The main message related to the error. It should provide an explanation or additional information about the error.
The timestamp when the error occurred, represented in UTC. It follows the format 'YYYY-MM-DD HH:mm:ss ZZ'.
The HTTP status code associated with the error. It indicates the status of the corresponding HTTP response.
The error code. It should be one of the IGNISIGN_ERROR_CODES (not linked here due to the high number of possible codes).
Additional contextual information related to the error. This object can contain any relevant properties.
{
"message": "string",
"timestamp": "2024-07-29T15:51:28.071Z",
"status": 0,
"code": "string",
"context": {}
}
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
The main message related to the error. It should provide an explanation or additional information about the error.
The timestamp when the error occurred, represented in UTC. It follows the format 'YYYY-MM-DD HH:mm:ss ZZ'.
The HTTP status code associated with the error. It indicates the status of the corresponding HTTP response.
The error code. It should be one of the IGNISIGN_ERROR_CODES (not linked here due to the high number of possible codes).
Additional contextual information related to the error. This object can contain any relevant properties.
{
"message": "string",
"timestamp": "2024-07-29T15:51:28.071Z",
"status": 0,
"code": "string",
"context": {}
}
Internal Error
- application/json
- Schema
- Example (from schema)
Schema
The main message related to the error. It should provide an explanation or additional information about the error.
The timestamp when the error occurred, represented in UTC. It follows the format 'YYYY-MM-DD HH:mm:ss ZZ'.
The HTTP status code associated with the error. It indicates the status of the corresponding HTTP response.
The error code. It should be one of the IGNISIGN_ERROR_CODES (not linked here due to the high number of possible codes).
Additional contextual information related to the error. This object can contain any relevant properties.
{
"message": "string",
"timestamp": "2024-07-29T15:51:28.071Z",
"status": 0,
"code": "string",
"context": {}
}