HydraCore
API by router

Lifecycle

Renew Certificate

POST
/internal/v1/instances/{instance_id}/cert/renew

Path Parameters

instance_id*Instance Id
Formatuuid

Request Body

application/json
  1. body
csr_pem*Csr Pem
Length100 <= length <= 10000
wg_public_key*Wg Public Key

Response Body

Successful Response

application/json
  1. response
cert_pem*Cert Pem
cert_serial*Cert Serial
expires_at*Expires At
Example Request
curl -X POST 'https://example.com/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/cert/renew' \  -H 'Content-Type: application/json' \  -d '{  "csr_pem": "stringstringstringstringstringstringstringstringstringstringstringstringstringstringstringstringstri",  "wg_public_key": "string"}'
Example Response
{  "cert_pem": "string",  "cert_serial": "string",  "expires_at": "string"}

Refresh Secrets

POST
/internal/v1/instances/{instance_id}/secrets/refresh

Path Parameters

instance_id*Instance Id
Formatuuid

Request Body

application/json
  1. body
vpn_ip*Vpn Ip
Match^10\.\d{1,3}\.\d{1,3}\.\d{1,3}$
wg_public_key*Wg Public Key

Response Body

Successful Response

application/json
  1. response
agent_secrets*
Example Request
curl -X POST 'https://example.com/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/secrets/refresh' \  -H 'Content-Type: application/json' \  -d '{  "vpn_ip": "string",  "wg_public_key": "string"}'
Example Response
{  "agent_secrets": {}}