{
  "openapi": "3.1.1",
  "info": {
    "title": "Tracebit API",
    "description": "API for interacting with the Tracebit platform.\n\nTo get started, [create an API token](/api-tokens). Each endpoint's documentation lists its required permissions.",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://community.tracebit.com",
      "description": "Tracebit Community Edition server"
    }
  ],
  "paths": {
    "/api/v1/credentials/issue-credentials": {
      "post": {
        "tags": [
          "Canary Credentials"
        ],
        "summary": "Issue credentials",
        "description": "Issue canary credentials of the requested types. The credentials should be confirmed via the /confirm-credentials endpoint after their appropriate deployment.\n\nRequired permission: `canary-credentials:all:create`.",
        "operationId": "IssueCredentials",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IssueCredentialsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IssueCredentialsResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "TracebitApiToken": [ ]
          }
        ]
      }
    },
    "/api/v1/credentials/confirm-credentials": {
      "post": {
        "tags": [
          "Canary Credentials"
        ],
        "summary": "Confirm credentials deployment",
        "description": "Confirm the successful deployment of canary credentials. Should be called with the confirmationId of the credentials issued via the /issue-credentials endpoint.\n\nRequired permission: `canary-credentials:all:create`.",
        "operationId": "ConfirmCredentials",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConfirmCredentialsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found"
          }
        },
        "security": [
          {
            "TracebitApiToken": [ ]
          }
        ]
      }
    },
    "/api/v1/alerts": {
      "get": {
        "tags": [
          "Alerts"
        ],
        "summary": "List Alerts",
        "description": "List alerts ordered by start time, one page at a time. Follow next_page until it is null to read every alert. An alert's start time can move earlier while the alert is still open, because the activity behind it can reach Tracebit out of order, so with the default order the same alert can appear on more than one page: treat the alert id as its identity and ignore repeats. Indicators, contextual signals explaining the activity behind the alert, such as a known source IP or an AI user-agent, are not included in the list; use Get Alert for them. Alerts of Info severity, which Tracebit assigns to activity it deliberately records rather than flags, such as a canary credential used by recognised tooling or usage matching a permitted activity, are not returned.\n\nRequired permission: `alerts:all:list`.",
        "operationId": "ListAlerts",
        "parameters": [
          {
            "name": "order",
            "in": "query",
            "description": "Sort direction by start time. 'desc' (default) returns newest first, 'asc' returns oldest first. Because an open alert's start time can move earlier, 'asc' can miss an alert that moves behind a page you have already read, so use the default 'desc' order when you need every alert.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of alerts per page: a whole number between 1 and 500, defaulting to 100. Larger values are reduced to 500.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "classification",
            "in": "query",
            "description": "Only return alerts with one of these classifications. Comma-separated or repeated; any of Unclassified, TruePositive, BenignPositive, FalsePositive.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "severity",
            "in": "query",
            "description": "Only return alerts with one of these severities. Comma-separated or repeated; any of Medium, High.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "start_time_after",
            "in": "query",
            "description": "Only return alerts that started at or after this time, as an ISO 8601 timestamp such as 2026-05-18T12:00:00Z. Treated as UTC without an offset.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "start_time_before",
            "in": "query",
            "description": "Only return alerts that started before this time, as an ISO 8601 timestamp such as 2026-05-18T12:00:00Z. Treated as UTC without an offset.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor_time",
            "in": "query",
            "description": "Paging cursor: the start time of the last alert on the previous page, as an ISO 8601 timestamp. Set from next_page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor_id",
            "in": "query",
            "description": "Paging cursor: the ID of the last alert on the previous page, as a UUID. Set from next_page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "canary_id",
            "in": "query",
            "description": "Only return alerts raised by this canary, as the `canaryId` the canary endpoints report.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListAlertsResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "TracebitApiToken": [ ]
          }
        ]
      }
    },
    "/api/v1/alerts/{id}/logs": {
      "get": {
        "tags": [
          "Alerts"
        ],
        "summary": "Get Alert Logs",
        "description": "Get an alert's logs\n\nRequired permission: `alerts:all:get`.",
        "operationId": "GetAlertLogs",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The unique identifier for the alert.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "beforeTime",
            "in": "query",
            "description": "Paging cursor: the event time of the last log on the previous page, as an ISO 8601 timestamp. Set from next_page.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "beforeLog",
            "in": "query",
            "description": "Paging cursor: the ID of the last log on the previous page, as a UUID. Set from next_page.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetAlertLogsResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "TracebitApiToken": [ ]
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "AlertIndicatorInformation": {
        "required": [
          "id",
          "name",
          "description"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "details": {
            "type": [
              "null",
              "object"
            ],
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        }
      },
      "AlertInformation": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "start_time": {
            "type": "string",
            "format": "date-time"
          },
          "end_time": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "classification": {
            "$ref": "#/components/schemas/Classification"
          },
          "classification_reason": {
            "type": [
              "null",
              "string"
            ]
          },
          "severity": {
            "$ref": "#/components/schemas/Severity"
          },
          "provider": {
            "type": "string"
          },
          "provider_account_id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "tracebit_portal_url": {
            "type": "string"
          },
          "logs_url": {
            "type": [
              "null",
              "string"
            ]
          },
          "indicators": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AlertIndicatorInformation"
            }
          },
          "member_alert_ids": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          }
        }
      },
      "AlertLogInformation": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "alert_id": {
            "type": "string"
          },
          "timestamp": {
            "type": "string",
            "format": "date-time"
          },
          "severity": {
            "$ref": "#/components/schemas/Severity"
          },
          "source_alert_id": {
            "type": [
              "null",
              "string"
            ]
          },
          "canary_credential": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/CanaryCredential"
              }
            ]
          },
          "canary": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/Canary"
              }
            ]
          },
          "principal": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/Principal"
              }
            ]
          },
          "event": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/Event"
              }
            ]
          }
        }
      },
      "ApiErrorResponse": {
        "required": [
          "error"
        ],
        "type": "object",
        "properties": {
          "error": {
            "type": "string",
            "description": "Error message describing what went wrong"
          },
          "details": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            },
            "description": "Additional details about the error, if applicable"
          }
        }
      },
      "AwsCanary": {
        "required": [
          "account_id",
          "account_name",
          "arn",
          "region"
        ],
        "type": "object",
        "properties": {
          "account_id": {
            "type": "string"
          },
          "account_name": {
            "type": "string"
          },
          "arn": {
            "type": "string"
          },
          "region": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "AwsCanaryCredentials": {
        "required": [
          "awsConfirmationId",
          "awsAccessKeyId",
          "awsExpiration",
          "awsSecretAccessKey",
          "awsSessionToken"
        ],
        "type": "object",
        "properties": {
          "awsConfirmationId": {
            "type": "string",
            "description": "The ID to use for confirming these credentials' deployment",
            "format": "uuid"
          },
          "awsAccessKeyId": {
            "type": "string",
            "description": "The AWS access key ID"
          },
          "awsExpiration": {
            "type": "string",
            "description": "The date when these credentials will expire",
            "format": "date-time"
          },
          "awsSecretAccessKey": {
            "type": "string",
            "description": "The AWS secret access key"
          },
          "awsSessionToken": {
            "type": "string",
            "description": "The AWS session token"
          }
        }
      },
      "AwsLongTermAccessKeyCanaryCredential": {
        "required": [
          "access_key_id"
        ],
        "type": "object",
        "properties": {
          "access_key_id": {
            "type": "string"
          }
        }
      },
      "AwsPrincipal": {
        "required": [
          "type"
        ],
        "type": "object",
        "properties": {
          "account_id": {
            "type": [
              "null",
              "string"
            ]
          },
          "type": {
            "type": "string"
          },
          "arn": {
            "type": [
              "null",
              "string"
            ]
          },
          "username": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "AwsTemporarySecurityCredentialsCanaryCredential": {
        "required": [
          "access_key_id"
        ],
        "type": "object",
        "properties": {
          "access_key_id": {
            "type": "string"
          }
        }
      },
      "AzureCanary": {
        "required": [
          "subscription_id",
          "subscription_name",
          "resource_id"
        ],
        "type": "object",
        "properties": {
          "subscription_id": {
            "type": "string"
          },
          "subscription_name": {
            "type": "string"
          },
          "resource_id": {
            "type": "string"
          }
        }
      },
      "AzurePrincipal": {
        "type": "object",
        "properties": {
          "app_id": {
            "type": [
              "null",
              "string"
            ]
          },
          "tenant_id": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "Canary": {
        "required": [
          "tracebit_id",
          "provider_id",
          "provider_account_id",
          "name",
          "type",
          "deployed_at"
        ],
        "type": "object",
        "properties": {
          "tracebit_id": {
            "type": "string"
          },
          "provider_id": {
            "type": "string"
          },
          "provider_account_id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "deployed_at": {
            "type": "string",
            "format": "date-time"
          },
          "aws": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/AwsCanary"
              }
            ]
          },
          "okta": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/OktaCanary"
              }
            ]
          },
          "azure": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/AzureCanary"
              }
            ]
          }
        }
      },
      "CanaryCredential": {
        "required": [
          "name",
          "type",
          "labels"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "issued_at": {
            "type": "string",
            "format": "date-time"
          },
          "expires_at": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "labels": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Label"
            }
          },
          "aws": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/AwsTemporarySecurityCredentialsCanaryCredential"
              }
            ]
          },
          "aws_long_term_access_key": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/AwsLongTermAccessKeyCanaryCredential"
              }
            ]
          }
        }
      },
      "Classification": {
        "enum": [
          "Unclassified",
          "TruePositive",
          "BenignPositive",
          "FalsePositive"
        ]
      },
      "ConfirmCredentialsRequest": {
        "required": [
          "id"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The confirmation ID for the deployed credentials",
            "format": "uuid"
          }
        }
      },
      "DecoyTokenLabel": {
        "required": [
          "name",
          "value"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "value": {
            "type": "string"
          }
        }
      },
      "Event": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "operation": {
            "type": "string"
          },
          "request": {
            "$ref": "#/components/schemas/Request"
          },
          "resources": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Resource"
            }
          },
          "outcome": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/EventOutcome"
              }
            ]
          }
        }
      },
      "EventOutcome": {
        "required": [
          "result"
        ],
        "type": "object",
        "properties": {
          "result": {
            "type": "string"
          },
          "code": {
            "type": [
              "null",
              "string"
            ]
          },
          "message": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "GetAlertLogsResponse": {
        "required": [
          "logs"
        ],
        "type": "object",
        "properties": {
          "logs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AlertLogInformation"
            },
            "description": "A page of logs associated with the alert"
          },
          "next_page": {
            "type": [
              "null",
              "string"
            ],
            "description": "URL for the next page of results"
          }
        }
      },
      "GoogleCloudPrincipal": {
        "type": "object",
        "properties": {
          "federated_identity_type": {
            "type": [
              "null",
              "string"
            ]
          },
          "federated_identity_pool": {
            "type": [
              "null",
              "string"
            ]
          },
          "federated_identity_subject": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "HttpCanaryCredentials": {
        "required": [
          "confirmationId",
          "browserDeploymentId",
          "hostNames",
          "expiresAt",
          "credentials"
        ],
        "type": "object",
        "properties": {
          "confirmationId": {
            "type": "string",
            "description": "The ID to use for confirming these credentials' deployment",
            "format": "uuid"
          },
          "browserDeploymentId": {
            "type": "string",
            "description": "The ID of the browser deployment",
            "format": "uuid"
          },
          "hostNames": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The hostnames for which these credentials are valid"
          },
          "expiresAt": {
            "type": [
              "null",
              "string"
            ],
            "description": "The date when these credentials will expire",
            "format": "date-time"
          },
          "credentials": {
            "description": "The perimeter canary credentials",
            "$ref": "#/components/schemas/JsonElement"
          }
        }
      },
      "IssueCredentialsRequest": {
        "required": [
          "name",
          "source",
          "sourceType"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "A name to identify the credentials"
          },
          "types": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            },
            "description": "The credential types to issue. Valid values are 'aws', 'ssh', 'gitlab-cookie', 'gitlab-username-password'"
          },
          "source": {
            "type": "string",
            "description": "The value for the 'source' label, representing the system used to deploy the credentials, for example 'custom' or 'script'"
          },
          "sourceType": {
            "type": "string",
            "description": "The value for the 'source_type' label, representing the type of system in which the credentials will be deployed, for example 'endpoint', 'container', 'ci/cd'"
          },
          "labels": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DecoyTokenLabel"
            },
            "description": "Additional label names and values for the credentials, typically metadata about how and where the credential is being deployed"
          },
          "forceUpdateLabels": {
            "type": "boolean",
            "description": "Only applies to credential types that return the same stored credential when re-issued under\nthe same name (e.g. okta, azure, awsLongTermAccessKey). By default such a credential retains\nonly the labels present with the same value on every issuance request; set this to true to\nreplace its stored labels with this request's labels instead.",
            "default": false
          }
        },
        "example": {
          "name": "home-canary",
          "types": [
            "aws",
            "ssh"
          ],
          "source": "custom",
          "sourceType": "endpoint",
          "labels": [
            {
              "name": "machine",
              "value": "home"
            }
          ]
        }
      },
      "IssueCredentialsResponse": {
        "type": "object",
        "properties": {
          "aws": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/AwsCanaryCredentials"
              }
            ]
          },
          "ssh": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/SshCanaryCredentials"
              }
            ]
          },
          "http": {
            "type": "object",
            "anyOf": [
              {
                "title": "gitlab-cookie",
                "required": [
                  "gitlab-cookie"
                ],
                "type": "object",
                "properties": {
                  "gitlab-cookie": {
                    "$ref": "#/components/schemas/HttpCanaryCredentials"
                  }
                }
              },
              {
                "title": "gitlab-username-password",
                "required": [
                  "gitlab-username-password"
                ],
                "type": "object",
                "properties": {
                  "gitlab-username-password": {
                    "$ref": "#/components/schemas/HttpCanaryCredentials"
                  }
                }
              }
            ],
            "description": "An object containing the perimeter canary credentials where the key is the credential type and the value is the HttpCanaryCredentials object. The schema of the 'credentials' value depends on the credential type."
          }
        },
        "example": {
          "aws": {
            "awsConfirmationId": "00000000-0000-4000-8000-000000000001",
            "awsAccessKeyId": "ASIAIOSFODNN7EXAMPLE",
            "awsExpiration": "2025-01-01T12:00:00Z",
            "awsSecretAccessKey": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY",
            "awsSessionToken": "AQoDYXdzEXAMPLESESSIONTOKEN/EXAMPLE+SESSION/TOKEN=="
          },
          "ssh": {
            "sshConfirmationId": "00000000-0000-4000-8000-000000000002",
            "sshIp": "203.0.113.10",
            "sshPrivateKey": "LS0tLS1CRUdJTiBPUEVOU1NIIFBSSVZBVEUgS0VZLS0tLS0KRVhBTVBMRVBSSVZBVEVLRVkKLS0tLS1FTkQgT1BFTlNTSCBQUklWQVRFIEtFWS0tLS0tCg==",
            "sshPublicKey": "c3NoLWVkMjU1MTkgRVhBTVBMRVBVQkxJQ0tFWQo=",
            "sshExpiration": "2025-01-31T00:00:00Z"
          },
          "http": {
            "gitlab-username-password": {
              "confirmationId": "00000000-0000-4000-8000-000000000003",
              "browserDeploymentId": "00000000-0000-4000-8000-000000000004",
              "hostNames": [
                "gitlab.example.com"
              ],
              "expiresAt": "2025-01-31T00:00:00Z",
              "credentials": {
                "strategy": "well-known",
                "username": "example-user",
                "password": "EXAMPLE-PASSWORD"
              }
            }
          }
        }
      },
      "JsonElement": { },
      "Label": {
        "required": [
          "name",
          "value"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "value": {
            "type": "string"
          }
        }
      },
      "ListAlertsResponse": {
        "required": [
          "alerts"
        ],
        "type": "object",
        "properties": {
          "alerts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AlertInformation"
            },
            "description": "A page of alerts"
          },
          "next_page": {
            "type": [
              "null",
              "string"
            ],
            "description": "URL for the next page of results, or null when there are no more alerts"
          }
        }
      },
      "OktaCanary": {
        "required": [
          "domain",
          "organization_id"
        ],
        "type": "object",
        "properties": {
          "domain": {
            "type": "string"
          },
          "organization_id": {
            "type": "string"
          }
        }
      },
      "OktaPrincipal": {
        "required": [
          "id",
          "type"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "alternate_id": {
            "type": [
              "null",
              "string"
            ]
          },
          "type": {
            "type": "string"
          }
        }
      },
      "Principal": {
        "required": [
          "id"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "aws": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/AwsPrincipal"
              }
            ]
          },
          "okta": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/OktaPrincipal"
              }
            ]
          },
          "azure": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/AzurePrincipal"
              }
            ]
          },
          "google_cloud": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/GoogleCloudPrincipal"
              }
            ]
          }
        }
      },
      "Request": {
        "type": "object",
        "properties": {
          "user_agent": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/UserAgent"
              }
            ]
          },
          "ip": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "Resource": {
        "required": [
          "id"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "type": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "Severity": {
        "enum": [
          "Info",
          "Medium",
          "High"
        ]
      },
      "SshCanaryCredentials": {
        "required": [
          "sshConfirmationId",
          "sshIp",
          "sshPrivateKey",
          "sshPublicKey",
          "sshExpiration"
        ],
        "type": "object",
        "properties": {
          "sshConfirmationId": {
            "type": "string",
            "description": "The ID to use for confirming these credentials' deployment",
            "format": "uuid"
          },
          "sshIp": {
            "type": "string",
            "description": "The IP address of the SSH server"
          },
          "sshPrivateKey": {
            "type": "string",
            "description": "Base64-encoded private key for connecting to the SSH server"
          },
          "sshPublicKey": {
            "type": "string",
            "description": "Base64-encoded public key of the SSH server"
          },
          "sshExpiration": {
            "type": "string",
            "description": "The date when these credentials will expire",
            "format": "date-time"
          }
        }
      },
      "UserAgent": {
        "required": [
          "raw",
          "label"
        ],
        "type": "object",
        "properties": {
          "raw": {
            "type": "string"
          },
          "label": {
            "type": "string"
          }
        }
      }
    },
    "securitySchemes": {
      "TracebitApiToken": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "tags": [
    {
      "name": "Canary Credentials"
    },
    {
      "name": "Alerts"
    }
  ]
}