API¶
Notary exposes a RESTful API for managing certificate requests, certificate authorities, users, and more.
Resources¶
The API exposes both Notary-specific and generic resources. The Notary-specific resources are described below:
Resource |
Description |
---|---|
Represents a Notary-owned Certificate Authority. These authorities can be used by Notary users to sign certificate requests submitted by external entities. |
|
Represents a certificate request made by an external entity. Users can get the certificate request signed in one of two ways:
|
In addition to the Notary-specific resources, the API also provides access to generic resources (e.g., accounts
, login
, metrics
) with commonly understood definitions.
Authentication¶
Almost every operation requires a client token, in the form of a Bearer Token.
Responses¶
Notary’s API responses are JSON objects with the following structure:
{
"result": "Result content",
"error": "Error message",
}
Note
GET calls to the /metrics
endpoint don’t follow this rule; they return text response in the Prometheus exposition format.