POST /certificates
Create an Origin CA certificate. You can use an Origin CA Key as your User Service Key or an API token when calling this endpoint (see above).
Servers
- https://api.cloudflare.com/client/v4
Request headers
Name | Type | Required | Description |
---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Request body fields
Name | Type | Required | Description |
---|---|---|---|
request_type |
String | No |
Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), or "keyless-certificate" (for Keyless SSL servers). Possible values:
|
requested_validity |
Number | No |
The number of days for which the certificate should be valid. Possible values:
Default value: 5475 |
csr |
String | No |
The Certificate Signing Request (CSR). Must be newline-encoded. |
hostnames[] |
Array | No |
Array of hostnames or wildcard names (e.g., *.example.com) bound to the certificate. |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.