Direct CA API v3.0

RESTful API for issuing Direct 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}

Query Endpoint

GET https://directca.maxmddirect.com/api/certificate/query

HTTP Request Header

Authorization: Bearer {accessToken}

Content-Type: application/json

Request Parameters

NameTypeDescription
commonNameIs String Query record.identifier = {commonNameIs}
Ex: https://directca.maxmddirect.com/api/certificate/query?commonNameIs=direct.mydomain.com
commonNameLike String Query record.identifier LIKE {commonNameLike}
Ex: https://directca.maxmddirect.com/api/certificate/query?commonNameLike=*.mydomain.com
signingSerialIs String Query record.signing_cert_serial = {signingSerialIs}
Ex: https://directca.maxmddirect.com/api/certificate/query?signingSerialIs=19ef29624d73766f7e7ca0af3f2853e
encryptionSerialIs String Query record.encryption_cert_serial = {encryptionSerialIs}
Ex: https://directca.maxmddirect.com/api/certificate/query?encryptionSerialIs=19ef29624d73766f7e7ca0af3f2853e

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)

NameTypeDescription
error String Error message
description String Error description

Success Response Body (format: application/json)

NameTypeDescription
query QueryObject Query information with the following parameters
offset int Query offset
totalCount int Total number matched records
returnedCount int Number of returned records
uri String URI of current query
previousPageUri String URI of previous page
nextPageUri String URI of next page
records CertificateObject[] An array of Certificate Objects with the following parameters
owner String TUser Username
identifier String Certificate common name
subject String Certificate Subject
issuer_subject String Certificate Issuer Subject
authority_key_identifier String Certificate Issuer Key Identifier
loa int Certificate Level of Authority level
category String Certificate category
npi String NPI number
valid_from String Certificate valid peroid start time (format: yyyy-MM-dd hh:mm:ss zzz)
valid_to String Certificate valid peroid end time (format: yyyy-MM-dd hh:mm:ss zzz)
contact_name String Certificate contact name
contact_email String Certificate contact email
contact_phone String Certificate contact phone
signing_cert_pkcs10 String Signing Certificate CSR in base64 encoded format
signing_cert_pkcs7 String Signing Certificate x509 certificate in base64 encoded format
signing_cert_serial String Signing Certificate Serial number in HEX format
encryption_cert_pkcs10 String Encryption Certificate CSR in base64 encoded format
encryption_cert_pkcs7 String Encryption Certificate x509 certificate in base64 encoded format
encryption_cert_serial String Encryption Certificate Serial number in HEX format
status String Certificate Status: valid, expired or revoked
created_ts String Certificate record created time (format: yyyy-MM-dd hh:mm:ss zzz)
updated_ts String Certificate record last updated time (format: yyyy-MM-dd hh:mm:ss zzz)