Direct CA API v3.0
RESTful API for issuing Direct Certificate using Direct Trust Accrediated CA.
Manage Direct Certificates
Issue/Reissue/Renew/Revoke/Retrieve signing and encryption certificate using Direct Trust Accrediated CA
Authentication
Access Token is required in order to access CA API functions.
Click here for OAuth2 authentication instruction.
Put a valid Access Token in each HTTP Request Header:
Authorization: Bearer {access_token}
Endpoints
Function | Endpoint |
---|---|
Issue | post https://directca.maxmddirect.com/api/certificate/
Issue new signing and encryption certificate. The commonName of the subject is the identifier to be used by other functions. |
Reissue | patch https://directca.maxmddirect.com/api/certificate/{commonName}
Reissue the signing and encryption certificates. This function allows you to re-key or update parameters. In HTTP Request body , no parameter is required. If any parameter is provided, the CA will re-issue the certificate with new provided parameters. No payment is required. |
Renew | post https://directca.maxmddirect.com/api/certificate/renew/{commonName}
Renew the signing and encryption certificates. In HTTP Request body , only "durationYear" parameter is required. If other parameters are provided, the CA will renewed certificate with new provided parameters. |
Revoke | post https://directca.maxmddirect.com/api/certificate/revoke/{commonName}/{reason}
Revoke the singing and encryption certificates. reason parameter should be one of the following values:
|
Retrieve | GET https://directca.maxmddirect.com/api/certificate/{commonName}
Retrieve the certificate record. |
HTTP Request Header
Authorization: Bearer {accessToken}
Content-Type: application/json
Request Body (format: application/json)
Name | Type | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
signingCertificatePkcs10Data | String | Signing Certificate CSR in base64 encoded format | ||||||||
encryptionCertificatePkcs10Data | String | Encryption Certificate CSR in base64 encoded format | ||||||||
contact | ContactObject | Certificate Contact Inforamtion with the following parameters | ||||||||
|
||||||||||
category | String |
Use one of the following value:
|
||||||||
durationYear | int | Certificate valid period. Use 1, 2 or 3 . | ||||||||
npi | String | 10-digits NPI number. This parameter is required for CE certificate |
HTTP Response Code
HTTP Code | Description |
---|---|
200 | Success. |
400 | Bad Request. Invalid action. Or some parameter is missing or invalid. |
401 | Unauthorized. No valid access token is found at request. |
403 | Forbidden. Permission denied for the requested action |
404 | Endpoint is not found |
500 | Server Error. |
Error Response Body (format: application/json)
Name | Type | Description |
---|---|---|
error | String | Error message |
description | String | Error description |
Success Response Body (format: application/json)
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
description | String | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
certificate | CertificateObject | Certificate information with the following parameters | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
payment | PaymentObject | Payment information with the following parameters | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|