Public API
The Baseguard API provides programmatic access to manage your mesh network. Use it to automate node management, configure access control, and integrate Baseguard into your infrastructure workflows.
Every endpoint is documented below this introduction, grouped by resource, with its parameters, fields and a ready to run request in cURL, JavaScript, Python and Go. The same reference is available as an OpenAPI (Swagger 2.0) spec for code generators and API tools.
Base URL
https://api.baseguard.net/openapi
For self-hosted deployments, use your control plane URL.
Authentication
All requests require an API key. Create one in the console:
- Go to Keys > API Keys
- Click Create API Key
- Copy the generated key (shown only once)
Include the key in the Authorization header along with your organization Id:
$ curl -H "Authorization: Bearer bgapi_xxxxxxxxxxxx" \ -H "x-bg-organization-id: your-org-id" \ https://api.baseguard.net/openapi/v1/nodeRequired Headers
| Header | Required | Description |
|---|---|---|
Authorization |
Yes | Bearer <api-key> |
x-bg-organization-id |
Yes | Organization Id |
Content-Type |
Yes | application/json |
Find your organization ID by running baseguard organizations or viewing organization settings in the console.
Best Practices
- Don't hardcode keys — Use environment variables
- Rotate regularly — Change keys periodically
- Use minimal permissions — Request only needed access
- Monitor usage — Review audit logs for anomalies
Errors
A failed request answers with an HTTP error status and a JSON body:
{
"statusCode": 403,
"message": "You do not have permission to perform this action.",
"messageKey": "error.forbidden"
}
message is meant for people and may change; messageKey is stable, so match on it in code. See Troubleshooting — API Issues for the common causes of 401, 403 and 404.
Nodes
Get nodes
Returns a list of all nodes (VPN clients/devices) registered in the specified organization.
Roles: OWNER, ADMIN, AUDITOR
Headers
x-bg-organization-idstringrequiredOrganization Id
Responses
200OKA list of objects with these fields.
approvedAtstringattributesobject11 child fields
acceptRoutesbooleanadvertiseRoutesbooleanclientVersionstringdnsEnabledbooleanexitRouteIdstringhostnamestringosstringosArchstringosKernelVersionstringosPlatformstringosPlatformVersionstring
authExpiresAtstringcreatedAtstringcreatedByUserobjectnull when the node joined with an auth key
4 child fields
emailstringfirstNamestringidstringlastNamestring
idstringisConnectedbooleanisEphemeralbooleanlastSeenstringnamestringoverlayIPv4stringoverlayIPv6stringpublicIPstringselectedRelayIdstringtagIdsstring[]updatedAtstring
400Bad RequestmessagestringmessageKeystringstatusCodeinteger
401UnauthorizedmessagestringmessageKeystringstatusCodeinteger
403ForbiddenmessagestringmessageKeystringstatusCodeinteger
500Internal Server ErrormessagestringmessageKeystringstatusCodeinteger
/v1/nodecurl -X GET "https://api.baseguard.net/openapi/v1/node" \
-H "Authorization: Bearer $BASEGUARD_API_KEY" \
-H "x-bg-organization-id: $BASEGUARD_ORGANIZATION_ID"[
{
"approvedAt": "string",
"attributes": {
"acceptRoutes": true,
"advertiseRoutes": true,
"clientVersion": "string",
"dnsEnabled": true,
"exitRouteId": "string",
"hostname": "string",
"os": "string",
"osArch": "string",
"osKernelVersion": "string",
"osPlatform": "string",
"osPlatformVersion": "string"
},
"authExpiresAt": "string",
"createdAt": "string",
"createdByUser": {
"email": "string",
"firstName": "string",
"id": "string",
"lastName": "string"
},
"id": "string",
"isConnected": true,
"isEphemeral": true,
"lastSeen": "string",
"name": "string",
"overlayIPv4": "string",
"overlayIPv6": "string",
"publicIP": "string",
"selectedRelayId": "string",
"tagIds": [
"string"
],
"updatedAt": "string"
}
]Update node
Updates the specified node's information such as name and tags.
Roles: OWNER, ADMIN
Path parameters
idstringrequiredNode Id
Headers
x-bg-organization-idstringrequiredOrganization Id
Request body
namestringtagIdsstring[]
Responses
200OK400Bad RequestmessagestringmessageKeystringstatusCodeinteger
401UnauthorizedmessagestringmessageKeystringstatusCodeinteger
403ForbiddenmessagestringmessageKeystringstatusCodeinteger
422Unprocessable EntitymessagestringmessageKeystringstatusCodeinteger
500Internal Server ErrormessagestringmessageKeystringstatusCodeinteger
/v1/node/{id}curl -X PUT "https://api.baseguard.net/openapi/v1/node/<id>" \
-H "Authorization: Bearer $BASEGUARD_API_KEY" \
-H "x-bg-organization-id: $BASEGUARD_ORGANIZATION_ID" \
-H "Content-Type: application/json" \
-d '{
"name": "string",
"tagIds": [
"string"
]
}'No response body.
Delete node
Removes the specified node from the organization. The node will no longer be able to connect to the mesh network.
Roles: OWNER, ADMIN
Path parameters
idstringrequiredNode Id
Headers
x-bg-organization-idstringrequiredOrganization Id
Responses
200OK400Bad RequestmessagestringmessageKeystringstatusCodeinteger
401UnauthorizedmessagestringmessageKeystringstatusCodeinteger
403ForbiddenmessagestringmessageKeystringstatusCodeinteger
500Internal Server ErrormessagestringmessageKeystringstatusCodeinteger
/v1/node/{id}curl -X DELETE "https://api.baseguard.net/openapi/v1/node/<id>" \
-H "Authorization: Bearer $BASEGUARD_API_KEY" \
-H "x-bg-organization-id: $BASEGUARD_ORGANIZATION_ID"No response body.
Approve node
Approves a pending node, allowing it to connect to the mesh network.
Roles: OWNER, ADMIN
Path parameters
idstringrequiredNode Id
Headers
x-bg-organization-idstringrequiredOrganization Id
Responses
200OK400Bad RequestmessagestringmessageKeystringstatusCodeinteger
401UnauthorizedmessagestringmessageKeystringstatusCodeinteger
403ForbiddenmessagestringmessageKeystringstatusCodeinteger
500Internal Server ErrormessagestringmessageKeystringstatusCodeinteger
/v1/node/{id}/approvecurl -X POST "https://api.baseguard.net/openapi/v1/node/<id>/approve" \
-H "Authorization: Bearer $BASEGUARD_API_KEY" \
-H "x-bg-organization-id: $BASEGUARD_ORGANIZATION_ID"No response body.
Disable key expiry
Disables the key expiration for the specified node, allowing it to remain connected indefinitely without re-authentication.
Roles: OWNER, ADMIN
Path parameters
idstringrequiredNode Id
Headers
x-bg-organization-idstringrequiredOrganization Id
Responses
200OK400Bad RequestmessagestringmessageKeystringstatusCodeinteger
401UnauthorizedmessagestringmessageKeystringstatusCodeinteger
403ForbiddenmessagestringmessageKeystringstatusCodeinteger
500Internal Server ErrormessagestringmessageKeystringstatusCodeinteger
/v1/node/{id}/disable-key-expirycurl -X POST "https://api.baseguard.net/openapi/v1/node/<id>/disable-key-expiry" \
-H "Authorization: Bearer $BASEGUARD_API_KEY" \
-H "x-bg-organization-id: $BASEGUARD_ORGANIZATION_ID"No response body.
Node version update
Pushes an update event to the named node. The node must be currently connected.
Roles: OWNER, ADMIN
Path parameters
idstringrequiredNode Id
Headers
x-bg-organization-idstringrequiredOrganization Id
Responses
200OK400Bad RequestmessagestringmessageKeystringstatusCodeinteger
401UnauthorizedmessagestringmessageKeystringstatusCodeinteger
403ForbiddenmessagestringmessageKeystringstatusCodeinteger
500Internal Server ErrormessagestringmessageKeystringstatusCodeinteger
/v1/node/{id}/version-updatecurl -X POST "https://api.baseguard.net/openapi/v1/node/<id>/version-update" \
-H "Authorization: Bearer $BASEGUARD_API_KEY" \
-H "x-bg-organization-id: $BASEGUARD_ORGANIZATION_ID"No response body.
Node Auth Keys
Get node auth keys
Returns a list of all node authentication keys in the specified organization. Auth keys are used for automated node enrollment without user interaction.
Roles: OWNER, ADMIN, AUDITOR
Headers
x-bg-organization-idstringrequiredOrganization Id
Responses
200OKA list of objects with these fields.
createdAtstringexpiresAtstringidstringnamestringnodeAutoApprovebooleannodeIsEphemeralbooleannodeTagIdsstring[]reusablebooleanrevokedAtstring
400Bad RequestmessagestringmessageKeystringstatusCodeinteger
401UnauthorizedmessagestringmessageKeystringstatusCodeinteger
403ForbiddenmessagestringmessageKeystringstatusCodeinteger
500Internal Server ErrormessagestringmessageKeystringstatusCodeinteger
/v1/node-auth-keycurl -X GET "https://api.baseguard.net/openapi/v1/node-auth-key" \
-H "Authorization: Bearer $BASEGUARD_API_KEY" \
-H "x-bg-organization-id: $BASEGUARD_ORGANIZATION_ID"[
{
"createdAt": "string",
"expiresAt": "string",
"id": "string",
"name": "string",
"nodeAutoApprove": true,
"nodeIsEphemeral": true,
"nodeTagIds": [
"string"
],
"reusable": true,
"revokedAt": "string"
}
]Create node auth key
Creates a new node authentication key for the organization. Auth keys allow automated node enrollment without user verification.
Roles: OWNER, ADMIN
Headers
x-bg-organization-idstringrequiredOrganization Id
Request body
expiresInDaysinteger0 disables expiration
namestringnodeAutoApprovebooleannodeIsEphemeralbooleannodeTagIdsstring[]reusableboolean
Responses
200OKidstringkeystring
400Bad RequestmessagestringmessageKeystringstatusCodeinteger
401UnauthorizedmessagestringmessageKeystringstatusCodeinteger
403ForbiddenmessagestringmessageKeystringstatusCodeinteger
422Unprocessable EntitymessagestringmessageKeystringstatusCodeinteger
500Internal Server ErrormessagestringmessageKeystringstatusCodeinteger
/v1/node-auth-keycurl -X POST "https://api.baseguard.net/openapi/v1/node-auth-key" \
-H "Authorization: Bearer $BASEGUARD_API_KEY" \
-H "x-bg-organization-id: $BASEGUARD_ORGANIZATION_ID" \
-H "Content-Type: application/json" \
-d '{
"expiresInDays": 0,
"name": "string",
"nodeAutoApprove": true,
"nodeIsEphemeral": true,
"nodeTagIds": [
"string"
],
"reusable": true
}'{
"id": "string",
"key": "string"
}Revoke node auth key
Revokes the specified node authentication key. Nodes will no longer be able to authenticate using this key.
Roles: OWNER, ADMIN
Path parameters
idstringrequiredNode auth key Id
Headers
x-bg-organization-idstringrequiredOrganization Id
Responses
200OK400Bad RequestmessagestringmessageKeystringstatusCodeinteger
401UnauthorizedmessagestringmessageKeystringstatusCodeinteger
403ForbiddenmessagestringmessageKeystringstatusCodeinteger
500Internal Server ErrormessagestringmessageKeystringstatusCodeinteger
/v1/node-auth-key/{id}curl -X DELETE "https://api.baseguard.net/openapi/v1/node-auth-key/<id>" \
-H "Authorization: Bearer $BASEGUARD_API_KEY" \
-H "x-bg-organization-id: $BASEGUARD_ORGANIZATION_ID"No response body.
Tags
Get tags
Returns a list of all tags defined in the specified organization. Tags are used to group nodes for ACL rules.
Roles: OWNER, ADMIN, AUDITOR
Headers
x-bg-organization-idstringrequiredOrganization Id
Responses
200OKA list of objects with these fields.
idstringnamestring
400Bad RequestmessagestringmessageKeystringstatusCodeinteger
401UnauthorizedmessagestringmessageKeystringstatusCodeinteger
403ForbiddenmessagestringmessageKeystringstatusCodeinteger
500Internal Server ErrormessagestringmessageKeystringstatusCodeinteger
/v1/tagcurl -X GET "https://api.baseguard.net/openapi/v1/tag" \
-H "Authorization: Bearer $BASEGUARD_API_KEY" \
-H "x-bg-organization-id: $BASEGUARD_ORGANIZATION_ID"[
{
"id": "string",
"name": "string"
}
]Create tag
Creates a new tag in the specified organization. Tags are used to group nodes for network ACL rules.
Roles: OWNER, ADMIN
Headers
x-bg-organization-idstringrequiredOrganization Id
Request body
namestring
Responses
200OKidstringnamestring
400Bad RequestmessagestringmessageKeystringstatusCodeinteger
401UnauthorizedmessagestringmessageKeystringstatusCodeinteger
403ForbiddenmessagestringmessageKeystringstatusCodeinteger
422Unprocessable EntitymessagestringmessageKeystringstatusCodeinteger
500Internal Server ErrormessagestringmessageKeystringstatusCodeinteger
/v1/tagcurl -X POST "https://api.baseguard.net/openapi/v1/tag" \
-H "Authorization: Bearer $BASEGUARD_API_KEY" \
-H "x-bg-organization-id: $BASEGUARD_ORGANIZATION_ID" \
-H "Content-Type: application/json" \
-d '{
"name": "string"
}'{
"id": "string",
"name": "string"
}Delete tag
Deletes the specified tag from the organization. The tag must not be in use by any ACL rules.
Roles: OWNER, ADMIN
Path parameters
idstringrequiredTag Id
Headers
x-bg-organization-idstringrequiredOrganization Id
Responses
200OK400Bad RequestmessagestringmessageKeystringstatusCodeinteger
401UnauthorizedmessagestringmessageKeystringstatusCodeinteger
403ForbiddenmessagestringmessageKeystringstatusCodeinteger
500Internal Server ErrormessagestringmessageKeystringstatusCodeinteger
/v1/tag/{id}curl -X DELETE "https://api.baseguard.net/openapi/v1/tag/<id>" \
-H "Authorization: Bearer $BASEGUARD_API_KEY" \
-H "x-bg-organization-id: $BASEGUARD_ORGANIZATION_ID"No response body.
Get tag usage detail
Returns detailed usage information for a specific tag, including which nodes and ACL rules reference it.
Roles: OWNER, ADMIN, AUDITOR
Path parameters
idstringrequiredTag Id
Headers
x-bg-organization-idstringrequiredOrganization Id
Responses
200OKisDNSNameserverInUsebooleanisDNSRecordInUsebooleanisDNSSearchDomainInUsebooleanisInUsebooleanisNetworkACLInUsebooleanisNodeAuthKeyInUsebooleanisNodeInUsebooleanisOrganizationUserInUsebooleanisOrganizationUserInviteInUsebooleanisRouteInUseboolean
400Bad RequestmessagestringmessageKeystringstatusCodeinteger
401UnauthorizedmessagestringmessageKeystringstatusCodeinteger
403ForbiddenmessagestringmessageKeystringstatusCodeinteger
500Internal Server ErrormessagestringmessageKeystringstatusCodeinteger
/v1/tag/{id}/usagecurl -X GET "https://api.baseguard.net/openapi/v1/tag/<id>/usage" \
-H "Authorization: Bearer $BASEGUARD_API_KEY" \
-H "x-bg-organization-id: $BASEGUARD_ORGANIZATION_ID"{
"isDNSNameserverInUse": true,
"isDNSRecordInUse": true,
"isDNSSearchDomainInUse": true,
"isInUse": true,
"isNetworkACLInUse": true,
"isNodeAuthKeyInUse": true,
"isNodeInUse": true,
"isOrganizationUserInUse": true,
"isOrganizationUserInviteInUse": true,
"isRouteInUse": true
}Network Rules
Get network ACLs
Returns a list of all network ACL rules defined in the specified organization. ACL rules control traffic between tagged node groups.
Roles: OWNER, ADMIN, AUDITOR
Headers
x-bg-organization-idstringrequiredOrganization Id
Responses
200OKA list of objects with these fields.
dstRouteIdstringdstTagIdsstring[]dstTypestringOne of
TAG,ROUTEidstringnamestringportsobject[]2 child fields
endintegerstartinteger
protocolstringOne of
TCP,UDP,ICMP,ALLsrcTagIdsstring[]srcTypestringOne of
TAG
400Bad RequestmessagestringmessageKeystringstatusCodeinteger
401UnauthorizedmessagestringmessageKeystringstatusCodeinteger
403ForbiddenmessagestringmessageKeystringstatusCodeinteger
500Internal Server ErrormessagestringmessageKeystringstatusCodeinteger
/v1/acl/networkcurl -X GET "https://api.baseguard.net/openapi/v1/acl/network" \
-H "Authorization: Bearer $BASEGUARD_API_KEY" \
-H "x-bg-organization-id: $BASEGUARD_ORGANIZATION_ID"[
{
"dstRouteId": "string",
"dstTagIds": [
"string"
],
"dstType": "TAG",
"id": "string",
"name": "string",
"ports": [
{
"end": 0,
"start": 0
}
],
"protocol": "TCP",
"srcTagIds": [
"string"
],
"srcType": "TAG"
}
]Create network ACL
Creates a new network ACL rule in the specified organization. ACL rules define allowed traffic between source and destination tag groups with protocol and port specifications.
Roles: OWNER, ADMIN
Headers
x-bg-organization-idstringrequiredOrganization Id
Request body
dstRouteIdstringdstTagIdsstring[]dstTypestringOne of
TAG,ROUTEnamestringportsobject[]2 child fields
endintegerstartinteger
protocolstringOne of
TCP,UDP,ICMP,ALLsrcTagIdsstring[]srcTypestringOne of
TAG
Responses
200OKdstRouteIdstringdstTagIdsstring[]dstTypestringOne of
TAG,ROUTEidstringnamestringportsobject[]2 child fields
endintegerstartinteger
protocolstringOne of
TCP,UDP,ICMP,ALLsrcTagIdsstring[]srcTypestringOne of
TAG
400Bad RequestmessagestringmessageKeystringstatusCodeinteger
401UnauthorizedmessagestringmessageKeystringstatusCodeinteger
403ForbiddenmessagestringmessageKeystringstatusCodeinteger
422Unprocessable EntitymessagestringmessageKeystringstatusCodeinteger
500Internal Server ErrormessagestringmessageKeystringstatusCodeinteger
/v1/acl/networkcurl -X POST "https://api.baseguard.net/openapi/v1/acl/network" \
-H "Authorization: Bearer $BASEGUARD_API_KEY" \
-H "x-bg-organization-id: $BASEGUARD_ORGANIZATION_ID" \
-H "Content-Type: application/json" \
-d '{
"dstRouteId": "string",
"dstTagIds": [
"string"
],
"dstType": "TAG",
"name": "string",
"ports": [
{
"end": 0,
"start": 0
}
],
"protocol": "TCP",
"srcTagIds": [
"string"
],
"srcType": "TAG"
}'{
"dstRouteId": "string",
"dstTagIds": [
"string"
],
"dstType": "TAG",
"id": "string",
"name": "string",
"ports": [
{
"end": 0,
"start": 0
}
],
"protocol": "TCP",
"srcTagIds": [
"string"
],
"srcType": "TAG"
}Update network ACL
Updates the specified network ACL rule.
Roles: OWNER, ADMIN
Path parameters
idstringrequiredACL Id
Headers
x-bg-organization-idstringrequiredOrganization Id
Request body
dstRouteIdstringdstTagIdsstring[]dstTypestringOne of
TAG,ROUTEnamestringportsobject[]2 child fields
endintegerstartinteger
protocolstringOne of
TCP,UDP,ICMP,ALLsrcTagIdsstring[]srcTypestringOne of
TAG
Responses
200OKdstRouteIdstringdstTagIdsstring[]dstTypestringOne of
TAG,ROUTEidstringnamestringportsobject[]2 child fields
endintegerstartinteger
protocolstringOne of
TCP,UDP,ICMP,ALLsrcTagIdsstring[]srcTypestringOne of
TAG
400Bad RequestmessagestringmessageKeystringstatusCodeinteger
401UnauthorizedmessagestringmessageKeystringstatusCodeinteger
403ForbiddenmessagestringmessageKeystringstatusCodeinteger
422Unprocessable EntitymessagestringmessageKeystringstatusCodeinteger
500Internal Server ErrormessagestringmessageKeystringstatusCodeinteger
/v1/acl/network/{id}curl -X PUT "https://api.baseguard.net/openapi/v1/acl/network/<id>" \
-H "Authorization: Bearer $BASEGUARD_API_KEY" \
-H "x-bg-organization-id: $BASEGUARD_ORGANIZATION_ID" \
-H "Content-Type: application/json" \
-d '{
"dstRouteId": "string",
"dstTagIds": [
"string"
],
"dstType": "TAG",
"name": "string",
"ports": [
{
"end": 0,
"start": 0
}
],
"protocol": "TCP",
"srcTagIds": [
"string"
],
"srcType": "TAG"
}'{
"dstRouteId": "string",
"dstTagIds": [
"string"
],
"dstType": "TAG",
"id": "string",
"name": "string",
"ports": [
{
"end": 0,
"start": 0
}
],
"protocol": "TCP",
"srcTagIds": [
"string"
],
"srcType": "TAG"
}Delete network ACL
Deletes the specified network ACL rule from the organization.
Roles: OWNER, ADMIN
Path parameters
idstringrequiredACL Id
Headers
x-bg-organization-idstringrequiredOrganization Id
Responses
200OK400Bad RequestmessagestringmessageKeystringstatusCodeinteger
401UnauthorizedmessagestringmessageKeystringstatusCodeinteger
403ForbiddenmessagestringmessageKeystringstatusCodeinteger
500Internal Server ErrormessagestringmessageKeystringstatusCodeinteger
/v1/acl/network/{id}curl -X DELETE "https://api.baseguard.net/openapi/v1/acl/network/<id>" \
-H "Authorization: Bearer $BASEGUARD_API_KEY" \
-H "x-bg-organization-id: $BASEGUARD_ORGANIZATION_ID"No response body.
Routes
Get network routes
Returns a list of all network routes defined in the specified organization. Routes advertise subnets, domains, or the internet (exit routes) through tagged router nodes.
Roles: OWNER, ADMIN, AUDITOR
Headers
x-bg-organization-idstringrequiredOrganization Id
Responses
200OKA list of objects with these fields.
domainsstring[]idstringnamestringnetworkstringroutersobject[]3 child fields
masqueradebooleanpriorityintegertagIdstring
typestringOne of
SUBNET,DOMAIN,EXIT
400Bad RequestmessagestringmessageKeystringstatusCodeinteger
401UnauthorizedmessagestringmessageKeystringstatusCodeinteger
403ForbiddenmessagestringmessageKeystringstatusCodeinteger
500Internal Server ErrormessagestringmessageKeystringstatusCodeinteger
/v1/routecurl -X GET "https://api.baseguard.net/openapi/v1/route" \
-H "Authorization: Bearer $BASEGUARD_API_KEY" \
-H "x-bg-organization-id: $BASEGUARD_ORGANIZATION_ID"[
{
"domains": [
"string"
],
"id": "string",
"name": "string",
"network": "string",
"routers": [
{
"masquerade": true,
"priority": 0,
"tagId": "string"
}
],
"type": "SUBNET"
}
]Create network route
Creates a new network route in the specified organization. Subnet routes carry a CIDR, domain routes carry a domain list, and exit routes send all other traffic through their routers.
Roles: OWNER, ADMIN
Headers
x-bg-organization-idstringrequiredOrganization Id
Request body
domainsstring[]namestringnetworkstringroutersobject[]3 child fields
masqueradebooleanpriorityintegertagIdstring
typestringOne of
SUBNET,DOMAIN,EXIT
Responses
200OKdomainsstring[]idstringnamestringnetworkstringroutersobject[]3 child fields
masqueradebooleanpriorityintegertagIdstring
typestringOne of
SUBNET,DOMAIN,EXIT
400Bad RequestmessagestringmessageKeystringstatusCodeinteger
401UnauthorizedmessagestringmessageKeystringstatusCodeinteger
403ForbiddenmessagestringmessageKeystringstatusCodeinteger
422Unprocessable EntitymessagestringmessageKeystringstatusCodeinteger
500Internal Server ErrormessagestringmessageKeystringstatusCodeinteger
/v1/routecurl -X POST "https://api.baseguard.net/openapi/v1/route" \
-H "Authorization: Bearer $BASEGUARD_API_KEY" \
-H "x-bg-organization-id: $BASEGUARD_ORGANIZATION_ID" \
-H "Content-Type: application/json" \
-d '{
"domains": [
"string"
],
"name": "string",
"network": "string",
"routers": [
{
"masquerade": true,
"priority": 0,
"tagId": "string"
}
],
"type": "SUBNET"
}'{
"domains": [
"string"
],
"id": "string",
"name": "string",
"network": "string",
"routers": [
{
"masquerade": true,
"priority": 0,
"tagId": "string"
}
],
"type": "SUBNET"
}Update network route
Updates the specified network route.
Roles: OWNER, ADMIN
Path parameters
idstringrequiredRoute Id
Headers
x-bg-organization-idstringrequiredOrganization Id
Request body
domainsstring[]namestringnetworkstringroutersobject[]3 child fields
masqueradebooleanpriorityintegertagIdstring
typestringOne of
SUBNET,DOMAIN,EXIT
Responses
200OKdomainsstring[]idstringnamestringnetworkstringroutersobject[]3 child fields
masqueradebooleanpriorityintegertagIdstring
typestringOne of
SUBNET,DOMAIN,EXIT
400Bad RequestmessagestringmessageKeystringstatusCodeinteger
401UnauthorizedmessagestringmessageKeystringstatusCodeinteger
403ForbiddenmessagestringmessageKeystringstatusCodeinteger
422Unprocessable EntitymessagestringmessageKeystringstatusCodeinteger
500Internal Server ErrormessagestringmessageKeystringstatusCodeinteger
/v1/route/{id}curl -X PUT "https://api.baseguard.net/openapi/v1/route/<id>" \
-H "Authorization: Bearer $BASEGUARD_API_KEY" \
-H "x-bg-organization-id: $BASEGUARD_ORGANIZATION_ID" \
-H "Content-Type: application/json" \
-d '{
"domains": [
"string"
],
"name": "string",
"network": "string",
"routers": [
{
"masquerade": true,
"priority": 0,
"tagId": "string"
}
],
"type": "SUBNET"
}'{
"domains": [
"string"
],
"id": "string",
"name": "string",
"network": "string",
"routers": [
{
"masquerade": true,
"priority": 0,
"tagId": "string"
}
],
"type": "SUBNET"
}Delete network route
Deletes the specified network route from the organization.
Roles: OWNER, ADMIN
Path parameters
idstringrequiredRoute Id
Headers
x-bg-organization-idstringrequiredOrganization Id
Responses
200OK400Bad RequestmessagestringmessageKeystringstatusCodeinteger
401UnauthorizedmessagestringmessageKeystringstatusCodeinteger
403ForbiddenmessagestringmessageKeystringstatusCodeinteger
500Internal Server ErrormessagestringmessageKeystringstatusCodeinteger
/v1/route/{id}curl -X DELETE "https://api.baseguard.net/openapi/v1/route/<id>" \
-H "Authorization: Bearer $BASEGUARD_API_KEY" \
-H "x-bg-organization-id: $BASEGUARD_ORGANIZATION_ID"No response body.
DNS
Get DNS nameservers
Returns the organization's upstream resolvers.
Roles: OWNER, ADMIN, AUDITOR
Headers
x-bg-organization-idstringrequiredOrganization Id
Responses
200OKA list of objects with these fields.
addressesstring[]idstringmatchDomainstringnamestringtagIdsstring[]typestringOne of
Do53
400Bad RequestmessagestringmessageKeystringstatusCodeinteger
401UnauthorizedmessagestringmessageKeystringstatusCodeinteger
403ForbiddenmessagestringmessageKeystringstatusCodeinteger
500Internal Server ErrormessagestringmessageKeystringstatusCodeinteger
/v1/dns/nameservercurl -X GET "https://api.baseguard.net/openapi/v1/dns/nameserver" \
-H "Authorization: Bearer $BASEGUARD_API_KEY" \
-H "x-bg-organization-id: $BASEGUARD_ORGANIZATION_ID"[
{
"addresses": [
"string"
],
"id": "string",
"matchDomain": "string",
"name": "string",
"tagIds": [
"string"
],
"type": "Do53"
}
]Create DNS nameserver
Creates a new upstream resolver. Without a match domain it overrides the nodes' system resolvers; with a match domain it only serves that suffix (split DNS).
Roles: OWNER, ADMIN
Headers
x-bg-organization-idstringrequiredOrganization Id
Request body
addressesstring[]matchDomainstringnamestringtagIdsstring[]typestringOne of
Do53
Responses
200OKaddressesstring[]idstringmatchDomainstringnamestringtagIdsstring[]typestringOne of
Do53
400Bad RequestmessagestringmessageKeystringstatusCodeinteger
401UnauthorizedmessagestringmessageKeystringstatusCodeinteger
403ForbiddenmessagestringmessageKeystringstatusCodeinteger
422Unprocessable EntitymessagestringmessageKeystringstatusCodeinteger
500Internal Server ErrormessagestringmessageKeystringstatusCodeinteger
/v1/dns/nameservercurl -X POST "https://api.baseguard.net/openapi/v1/dns/nameserver" \
-H "Authorization: Bearer $BASEGUARD_API_KEY" \
-H "x-bg-organization-id: $BASEGUARD_ORGANIZATION_ID" \
-H "Content-Type: application/json" \
-d '{
"addresses": [
"string"
],
"matchDomain": "string",
"name": "string",
"tagIds": [
"string"
],
"type": "Do53"
}'{
"addresses": [
"string"
],
"id": "string",
"matchDomain": "string",
"name": "string",
"tagIds": [
"string"
],
"type": "Do53"
}Update DNS nameserver
Updates the specified nameserver.
Roles: OWNER, ADMIN
Path parameters
idstringrequiredDNS Nameserver Id
Headers
x-bg-organization-idstringrequiredOrganization Id
Request body
addressesstring[]matchDomainstringnamestringtagIdsstring[]typestringOne of
Do53
Responses
200OKaddressesstring[]idstringmatchDomainstringnamestringtagIdsstring[]typestringOne of
Do53
400Bad RequestmessagestringmessageKeystringstatusCodeinteger
401UnauthorizedmessagestringmessageKeystringstatusCodeinteger
403ForbiddenmessagestringmessageKeystringstatusCodeinteger
422Unprocessable EntitymessagestringmessageKeystringstatusCodeinteger
500Internal Server ErrormessagestringmessageKeystringstatusCodeinteger
/v1/dns/nameserver/{id}curl -X PUT "https://api.baseguard.net/openapi/v1/dns/nameserver/<id>" \
-H "Authorization: Bearer $BASEGUARD_API_KEY" \
-H "x-bg-organization-id: $BASEGUARD_ORGANIZATION_ID" \
-H "Content-Type: application/json" \
-d '{
"addresses": [
"string"
],
"matchDomain": "string",
"name": "string",
"tagIds": [
"string"
],
"type": "Do53"
}'{
"addresses": [
"string"
],
"id": "string",
"matchDomain": "string",
"name": "string",
"tagIds": [
"string"
],
"type": "Do53"
}Delete DNS nameserver
Removes the specified nameserver.
Roles: OWNER, ADMIN
Path parameters
idstringrequiredDNS Nameserver Id
Headers
x-bg-organization-idstringrequiredOrganization Id
Responses
200OK400Bad RequestmessagestringmessageKeystringstatusCodeinteger
401UnauthorizedmessagestringmessageKeystringstatusCodeinteger
403ForbiddenmessagestringmessageKeystringstatusCodeinteger
500Internal Server ErrormessagestringmessageKeystringstatusCodeinteger
/v1/dns/nameserver/{id}curl -X DELETE "https://api.baseguard.net/openapi/v1/dns/nameserver/<id>" \
-H "Authorization: Bearer $BASEGUARD_API_KEY" \
-H "x-bg-organization-id: $BASEGUARD_ORGANIZATION_ID"No response body.
Get DNS records
Returns the organization's custom records answered authoritatively by node DNS servers.
Roles: OWNER, ADMIN, AUDITOR
Headers
x-bg-organization-idstringrequiredOrganization Id
Responses
200OKA list of objects with these fields.
domainstringidstringtagIdsstring[]ttlintegertypestringOne of
A,AAAAvaluestring
400Bad RequestmessagestringmessageKeystringstatusCodeinteger
401UnauthorizedmessagestringmessageKeystringstatusCodeinteger
403ForbiddenmessagestringmessageKeystringstatusCodeinteger
500Internal Server ErrormessagestringmessageKeystringstatusCodeinteger
/v1/dns/recordcurl -X GET "https://api.baseguard.net/openapi/v1/dns/record" \
-H "Authorization: Bearer $BASEGUARD_API_KEY" \
-H "x-bg-organization-id: $BASEGUARD_ORGANIZATION_ID"[
{
"domain": "string",
"id": "string",
"tagIds": [
"string"
],
"ttl": 0,
"type": "A",
"value": "string"
}
]Create DNS record
Creates a new custom record answered authoritatively by node DNS servers. Supported types: A, AAAA.
Roles: OWNER, ADMIN
Headers
x-bg-organization-idstringrequiredOrganization Id
Request body
domainstringtagIdsstring[]ttlintegertypestringOne of
A,AAAAvaluestring
Responses
200OKdomainstringidstringtagIdsstring[]ttlintegertypestringOne of
A,AAAAvaluestring
400Bad RequestmessagestringmessageKeystringstatusCodeinteger
401UnauthorizedmessagestringmessageKeystringstatusCodeinteger
403ForbiddenmessagestringmessageKeystringstatusCodeinteger
422Unprocessable EntitymessagestringmessageKeystringstatusCodeinteger
500Internal Server ErrormessagestringmessageKeystringstatusCodeinteger
/v1/dns/recordcurl -X POST "https://api.baseguard.net/openapi/v1/dns/record" \
-H "Authorization: Bearer $BASEGUARD_API_KEY" \
-H "x-bg-organization-id: $BASEGUARD_ORGANIZATION_ID" \
-H "Content-Type: application/json" \
-d '{
"domain": "string",
"tagIds": [
"string"
],
"ttl": 0,
"type": "A",
"value": "string"
}'{
"domain": "string",
"id": "string",
"tagIds": [
"string"
],
"ttl": 0,
"type": "A",
"value": "string"
}Update DNS record
Updates the specified custom record. Supported types: A, AAAA.
Roles: OWNER, ADMIN
Path parameters
idstringrequiredDNS Record Id
Headers
x-bg-organization-idstringrequiredOrganization Id
Request body
domainstringtagIdsstring[]ttlintegertypestringOne of
A,AAAAvaluestring
Responses
200OKdomainstringidstringtagIdsstring[]ttlintegertypestringOne of
A,AAAAvaluestring
400Bad RequestmessagestringmessageKeystringstatusCodeinteger
401UnauthorizedmessagestringmessageKeystringstatusCodeinteger
403ForbiddenmessagestringmessageKeystringstatusCodeinteger
422Unprocessable EntitymessagestringmessageKeystringstatusCodeinteger
500Internal Server ErrormessagestringmessageKeystringstatusCodeinteger
/v1/dns/record/{id}curl -X PUT "https://api.baseguard.net/openapi/v1/dns/record/<id>" \
-H "Authorization: Bearer $BASEGUARD_API_KEY" \
-H "x-bg-organization-id: $BASEGUARD_ORGANIZATION_ID" \
-H "Content-Type: application/json" \
-d '{
"domain": "string",
"tagIds": [
"string"
],
"ttl": 0,
"type": "A",
"value": "string"
}'{
"domain": "string",
"id": "string",
"tagIds": [
"string"
],
"ttl": 0,
"type": "A",
"value": "string"
}Delete DNS record
Removes the specified custom record.
Roles: OWNER, ADMIN
Path parameters
idstringrequiredDNS Record Id
Headers
x-bg-organization-idstringrequiredOrganization Id
Responses
200OK400Bad RequestmessagestringmessageKeystringstatusCodeinteger
401UnauthorizedmessagestringmessageKeystringstatusCodeinteger
403ForbiddenmessagestringmessageKeystringstatusCodeinteger
500Internal Server ErrormessagestringmessageKeystringstatusCodeinteger
/v1/dns/record/{id}curl -X DELETE "https://api.baseguard.net/openapi/v1/dns/record/<id>" \
-H "Authorization: Bearer $BASEGUARD_API_KEY" \
-H "x-bg-organization-id: $BASEGUARD_ORGANIZATION_ID"No response body.
Get DNS search domains
Returns the organization's search domains. The first entry is the organization's own domain (id "organization-domain"); it is implicit and cannot be modified.
Roles: OWNER, ADMIN, AUDITOR
Headers
x-bg-organization-idstringrequiredOrganization Id
Responses
200OKA list of objects with these fields.
domainstringidstringtagIdsstring[]
400Bad RequestmessagestringmessageKeystringstatusCodeinteger
401UnauthorizedmessagestringmessageKeystringstatusCodeinteger
403ForbiddenmessagestringmessageKeystringstatusCodeinteger
500Internal Server ErrormessagestringmessageKeystringstatusCodeinteger
/v1/dns/search-domaincurl -X GET "https://api.baseguard.net/openapi/v1/dns/search-domain" \
-H "Authorization: Bearer $BASEGUARD_API_KEY" \
-H "x-bg-organization-id: $BASEGUARD_ORGANIZATION_ID"[
{
"domain": "string",
"id": "string",
"tagIds": [
"string"
]
}
]Create DNS search domain
Creates a new search domain used by nodes to expand short names.
Roles: OWNER, ADMIN
Headers
x-bg-organization-idstringrequiredOrganization Id
Request body
domainstringtagIdsstring[]
Responses
200OKdomainstringidstringtagIdsstring[]
400Bad RequestmessagestringmessageKeystringstatusCodeinteger
401UnauthorizedmessagestringmessageKeystringstatusCodeinteger
403ForbiddenmessagestringmessageKeystringstatusCodeinteger
422Unprocessable EntitymessagestringmessageKeystringstatusCodeinteger
500Internal Server ErrormessagestringmessageKeystringstatusCodeinteger
/v1/dns/search-domaincurl -X POST "https://api.baseguard.net/openapi/v1/dns/search-domain" \
-H "Authorization: Bearer $BASEGUARD_API_KEY" \
-H "x-bg-organization-id: $BASEGUARD_ORGANIZATION_ID" \
-H "Content-Type: application/json" \
-d '{
"domain": "string",
"tagIds": [
"string"
]
}'{
"domain": "string",
"id": "string",
"tagIds": [
"string"
]
}Update DNS search domain
Updates the specified search domain.
Roles: OWNER, ADMIN
Path parameters
idstringrequiredDNS Search Domain Id
Headers
x-bg-organization-idstringrequiredOrganization Id
Request body
domainstringtagIdsstring[]
Responses
200OKdomainstringidstringtagIdsstring[]
400Bad RequestmessagestringmessageKeystringstatusCodeinteger
401UnauthorizedmessagestringmessageKeystringstatusCodeinteger
403ForbiddenmessagestringmessageKeystringstatusCodeinteger
422Unprocessable EntitymessagestringmessageKeystringstatusCodeinteger
500Internal Server ErrormessagestringmessageKeystringstatusCodeinteger
/v1/dns/search-domain/{id}curl -X PUT "https://api.baseguard.net/openapi/v1/dns/search-domain/<id>" \
-H "Authorization: Bearer $BASEGUARD_API_KEY" \
-H "x-bg-organization-id: $BASEGUARD_ORGANIZATION_ID" \
-H "Content-Type: application/json" \
-d '{
"domain": "string",
"tagIds": [
"string"
]
}'{
"domain": "string",
"id": "string",
"tagIds": [
"string"
]
}Delete DNS search domain
Removes the specified search domain.
Roles: OWNER, ADMIN
Path parameters
idstringrequiredDNS Search Domain Id
Headers
x-bg-organization-idstringrequiredOrganization Id
Responses
200OK400Bad RequestmessagestringmessageKeystringstatusCodeinteger
401UnauthorizedmessagestringmessageKeystringstatusCodeinteger
403ForbiddenmessagestringmessageKeystringstatusCodeinteger
500Internal Server ErrormessagestringmessageKeystringstatusCodeinteger
/v1/dns/search-domain/{id}curl -X DELETE "https://api.baseguard.net/openapi/v1/dns/search-domain/<id>" \
-H "Authorization: Bearer $BASEGUARD_API_KEY" \
-H "x-bg-organization-id: $BASEGUARD_ORGANIZATION_ID"No response body.
Users
Get organization users
Returns a list of all users that are members of the specified organization.
Roles: OWNER, ADMIN, AUDITOR
Headers
x-bg-organization-idstringrequiredOrganization Id
Responses
200OKA list of objects with these fields.
authoritystringOne of
OWNER,ADMIN,AUDITOR,MEMBERcreatedAtstringtagIdsstring[]userobject4 child fields
emailstringfirstNamestringidstringlastNamestring
400Bad RequestmessagestringmessageKeystringstatusCodeinteger
401UnauthorizedmessagestringmessageKeystringstatusCodeinteger
403ForbiddenmessagestringmessageKeystringstatusCodeinteger
500Internal Server ErrormessagestringmessageKeystringstatusCodeinteger
/v1/organization-usercurl -X GET "https://api.baseguard.net/openapi/v1/organization-user" \
-H "Authorization: Bearer $BASEGUARD_API_KEY" \
-H "x-bg-organization-id: $BASEGUARD_ORGANIZATION_ID"[
{
"authority": "OWNER",
"createdAt": "string",
"tagIds": [
"string"
],
"user": {
"email": "string",
"firstName": "string",
"id": "string",
"lastName": "string"
}
}
]Update organization user
Updates the specified user's information within the organization.
Roles: OWNER, ADMIN
Path parameters
idstringrequiredUser Id
Headers
x-bg-organization-idstringrequiredOrganization Id
Request body
tagIdsstring[]
Responses
200OK400Bad RequestmessagestringmessageKeystringstatusCodeinteger
401UnauthorizedmessagestringmessageKeystringstatusCodeinteger
403ForbiddenmessagestringmessageKeystringstatusCodeinteger
422Unprocessable EntitymessagestringmessageKeystringstatusCodeinteger
500Internal Server ErrormessagestringmessageKeystringstatusCodeinteger
/v1/organization-user/{id}curl -X PUT "https://api.baseguard.net/openapi/v1/organization-user/<id>" \
-H "Authorization: Bearer $BASEGUARD_API_KEY" \
-H "x-bg-organization-id: $BASEGUARD_ORGANIZATION_ID" \
-H "Content-Type: application/json" \
-d '{
"tagIds": [
"string"
]
}'No response body.
Delete organization user
Removes the specified user from the organization.
Roles: OWNER, ADMIN
Path parameters
idstringrequiredUser Id
Headers
x-bg-organization-idstringrequiredOrganization Id
Responses
200OK400Bad RequestmessagestringmessageKeystringstatusCodeinteger
401UnauthorizedmessagestringmessageKeystringstatusCodeinteger
403ForbiddenmessagestringmessageKeystringstatusCodeinteger
500Internal Server ErrormessagestringmessageKeystringstatusCodeinteger
/v1/organization-user/{id}curl -X DELETE "https://api.baseguard.net/openapi/v1/organization-user/<id>" \
-H "Authorization: Bearer $BASEGUARD_API_KEY" \
-H "x-bg-organization-id: $BASEGUARD_ORGANIZATION_ID"No response body.
Invitations
Get organization user invites
Returns a list of all pending user invitations for the specified organization.
Roles: OWNER, ADMIN, AUDITOR
Headers
x-bg-organization-idstringrequiredOrganization Id
Responses
200OKA list of objects with these fields.
authoritystringOne of
OWNER,ADMIN,AUDITOR,MEMBERcreatedAtstringemailstringexpiresAtstringidstringinvitedByUserobjectthe user who sent the invite
4 child fields
emailstringfirstNamestringidstringlastNamestring
tagIdsstring[]
400Bad RequestmessagestringmessageKeystringstatusCodeinteger
401UnauthorizedmessagestringmessageKeystringstatusCodeinteger
403ForbiddenmessagestringmessageKeystringstatusCodeinteger
500Internal Server ErrormessagestringmessageKeystringstatusCodeinteger
/v1/organization-user-invitecurl -X GET "https://api.baseguard.net/openapi/v1/organization-user-invite" \
-H "Authorization: Bearer $BASEGUARD_API_KEY" \
-H "x-bg-organization-id: $BASEGUARD_ORGANIZATION_ID"[
{
"authority": "OWNER",
"createdAt": "string",
"email": "string",
"expiresAt": "string",
"id": "string",
"invitedByUser": {
"email": "string",
"firstName": "string",
"id": "string",
"lastName": "string"
},
"tagIds": [
"string"
]
}
]Create organization user invite
Creates a new invitation to add a user to the organization. An email will be sent to the invited user.
Roles: OWNER, ADMIN
Headers
x-bg-organization-idstringrequiredOrganization Id
Request body
authoritystringOne of
OWNER,ADMIN,AUDITOR,MEMBERemailstringtagIdsstring[]
Responses
200OK400Bad RequestmessagestringmessageKeystringstatusCodeinteger
401UnauthorizedmessagestringmessageKeystringstatusCodeinteger
403ForbiddenmessagestringmessageKeystringstatusCodeinteger
422Unprocessable EntitymessagestringmessageKeystringstatusCodeinteger
500Internal Server ErrormessagestringmessageKeystringstatusCodeinteger
/v1/organization-user-invitecurl -X POST "https://api.baseguard.net/openapi/v1/organization-user-invite" \
-H "Authorization: Bearer $BASEGUARD_API_KEY" \
-H "x-bg-organization-id: $BASEGUARD_ORGANIZATION_ID" \
-H "Content-Type: application/json" \
-d '{
"authority": "OWNER",
"email": "string",
"tagIds": [
"string"
]
}'No response body.
Get organization user invite detail
Returns the details of a specific user invitation. Used by invited users to view invitation details before accepting
Path parameters
idstringrequiredInvite Id
Responses
200OKauthoritystringOne of
OWNER,ADMIN,AUDITOR,MEMBERcreatedAtstringemailstringexpiresAtstringidstringinvitedByUserobjectthe user who sent the invite
4 child fields
emailstringfirstNamestringidstringlastNamestring
organizationobject2 child fields
idstringnamestring
tagIdsstring[]
400Bad RequestmessagestringmessageKeystringstatusCodeinteger
401UnauthorizedmessagestringmessageKeystringstatusCodeinteger
404Not FoundmessagestringmessageKeystringstatusCodeinteger
500Internal Server ErrormessagestringmessageKeystringstatusCodeinteger
/v1/organization-user-invite/{id}curl -X GET "https://api.baseguard.net/openapi/v1/organization-user-invite/<id>" \
-H "Authorization: Bearer $BASEGUARD_API_KEY"{
"authority": "OWNER",
"createdAt": "string",
"email": "string",
"expiresAt": "string",
"id": "string",
"invitedByUser": {
"email": "string",
"firstName": "string",
"id": "string",
"lastName": "string"
},
"organization": {
"id": "string",
"name": "string"
},
"tagIds": [
"string"
]
}Delete organization user invite
Deletes a pending user invitation.
Roles: OWNER, ADMIN
Path parameters
idstringrequiredInvite Id
Headers
x-bg-organization-idstringrequiredOrganization Id
Responses
200OK400Bad RequestmessagestringmessageKeystringstatusCodeinteger
401UnauthorizedmessagestringmessageKeystringstatusCodeinteger
403ForbiddenmessagestringmessageKeystringstatusCodeinteger
500Internal Server ErrormessagestringmessageKeystringstatusCodeinteger
/v1/organization-user-invite/{id}curl -X DELETE "https://api.baseguard.net/openapi/v1/organization-user-invite/<id>" \
-H "Authorization: Bearer $BASEGUARD_API_KEY" \
-H "x-bg-organization-id: $BASEGUARD_ORGANIZATION_ID"No response body.
Accept organization user invite
Accepts a pending invitation and adds the authenticated user to the organization
Path parameters
idstringrequiredInvite Id
Responses
200OK400Bad RequestmessagestringmessageKeystringstatusCodeinteger
401UnauthorizedmessagestringmessageKeystringstatusCodeinteger
404Not FoundmessagestringmessageKeystringstatusCodeinteger
500Internal Server ErrormessagestringmessageKeystringstatusCodeinteger
/v1/organization-user-invite/{id}/acceptcurl -X POST "https://api.baseguard.net/openapi/v1/organization-user-invite/<id>/accept" \
-H "Authorization: Bearer $BASEGUARD_API_KEY"No response body.
Resend organization user invite email
Resends the invitation email to the invited user.
Roles: OWNER, ADMIN
Path parameters
idstringrequiredInvite Id
Headers
x-bg-organization-idstringrequiredOrganization Id
Responses
200OK400Bad RequestmessagestringmessageKeystringstatusCodeinteger
401UnauthorizedmessagestringmessageKeystringstatusCodeinteger
403ForbiddenmessagestringmessageKeystringstatusCodeinteger
500Internal Server ErrormessagestringmessageKeystringstatusCodeinteger
/v1/organization-user-invite/{id}/resend-emailcurl -X POST "https://api.baseguard.net/openapi/v1/organization-user-invite/<id>/resend-email" \
-H "Authorization: Bearer $BASEGUARD_API_KEY" \
-H "x-bg-organization-id: $BASEGUARD_ORGANIZATION_ID"No response body.
Audit Log
Get audit logs
Returns a list of audit log entries for the specified organization within the given date range. Default range is the last 24 hours.
Roles: OWNER, ADMIN, AUDITOR
Query parameters
startDatestringStart date (YYYY-MM-DD format)
endDatestringEnd date (YYYY-MM-DD format)
Headers
x-bg-organization-idstringrequiredOrganization Id
Responses
200OKA list of objects with these fields.
actionstringOne of
ACL.NETWORK.CREATE,ACL.NETWORK.UPDATE,ACL.NETWORK.DELETE,DNS.NAMESERVER.CREATE,DNS.NAMESERVER.UPDATE,DNS.NAMESERVER.DELETE,DNS.RECORD.CREATE,DNS.RECORD.UPDATE,DNS.RECORD.DELETE,DNS.SEARCH_DOMAIN.CREATE,DNS.SEARCH_DOMAIN.UPDATE,DNS.SEARCH_DOMAIN.DELETE,API_KEY.CREATE,API_KEY.REVOKE,NODE.UPDATE,NODE.DELETE,NODE.APPROVE,NODE.DISABLE_KEY_EXPIRY,NODE.VERSION_UPDATE,NODE.AUTH_VERIFY,NODE.AUTH_VERIFY_BY_KEY,NODE_AUTH_KEY.CREATE,NODE_AUTH_KEY.REVOKE,ORGANIZATION.CREATE,ORGANIZATION.UPDATE_SETTINGS,ORGANIZATION_USER.UPDATE,ORGANIZATION_USER.UPDATE_AUTHORITY,ORGANIZATION_USER.DELETE,ORGANIZATION_USER_INVITE.CREATE,ORGANIZATION_USER_INVITE.RESEND,ORGANIZATION_USER_INVITE.ACCEPT,ORGANIZATION_USER_INVITE.DELETE,ROUTE.CREATE,ROUTE.UPDATE,ROUTE.DELETE,TAG.CREATE,TAG.DELETEactorTypestringOne of
USER,API_KEY,NODE_AUTH_KEYapiKeyIdstringcreatedAtstringidstringipAddressstringnodeAuthKeyIdstringrequestBodyinteger[]resourceIdstringresourceTypestringOne of
ACL,DNS,API_KEY,NODE,NODE_AUTH_KEY,ORGANIZATION,ORGANIZATION_USER,ORGANIZATION_INVITE,ROUTE,TAG,USERuserobject4 child fields
emailstringfirstNamestringidstringlastNamestring
400Bad RequestmessagestringmessageKeystringstatusCodeinteger
401UnauthorizedmessagestringmessageKeystringstatusCodeinteger
403ForbiddenmessagestringmessageKeystringstatusCodeinteger
500Internal Server ErrormessagestringmessageKeystringstatusCodeinteger
/v1/audit-logcurl -X GET "https://api.baseguard.net/openapi/v1/audit-log" \
-H "Authorization: Bearer $BASEGUARD_API_KEY" \
-H "x-bg-organization-id: $BASEGUARD_ORGANIZATION_ID"[
{
"action": "ACL.NETWORK.CREATE",
"actorType": "USER",
"apiKeyId": "string",
"createdAt": "string",
"id": "string",
"ipAddress": "string",
"nodeAuthKeyId": "string",
"requestBody": [
0
],
"resourceId": "string",
"resourceType": "ACL",
"user": {
"email": "string",
"firstName": "string",
"id": "string",
"lastName": "string"
}
}
]Releases
Get latest release
Returns the latest published release for the given channel.
Roles: PUBLIC
Query parameters
channelstringrequiredRelease channel (STABLE, BETA)
Responses
200OKchannelstringOne of
STABLE,INTERNAL,BETAcreatedAtstringseveritystringOne of
NORMAL,SECURITY,CRITICALversionstring
400Bad RequestmessagestringmessageKeystringstatusCodeinteger
404Not FoundmessagestringmessageKeystringstatusCodeinteger
500Internal Server ErrormessagestringmessageKeystringstatusCodeinteger
/v1/release/latestcurl -X GET "https://api.baseguard.net/openapi/v1/release/latest?channel=<channel>" \
-H "Authorization: Bearer $BASEGUARD_API_KEY"{
"channel": "STABLE",
"createdAt": "string",
"severity": "NORMAL",
"version": "string"
}