Skip to main content

Methods

List attachments
TypeScript
GET /v1/projects/{id}/attachmentsList project API keys
TypeScript
GET /v1/projects/{projectId}/api-keysList webhook API versions
TypeScript
GET /v1/projects/{projectId}/webhooks/api-versionsList webhook destinations
TypeScript
GET /v1/projects/{projectId}/webhooks/destinationsList webhook egress addresses
TypeScript
GET /v1/projects/{projectId}/webhooks/egress-addressesList webhook event types
TypeScript
GET /v1/projects/{projectId}/webhooks/event-typesDownload attachment
TypeScript
GET /v1/projects/{id}/attachments/{attachmentId}/contentGet project
TypeScript
GET /v1/projects/{projectId}Get attachment
TypeScript
GET /v1/projects/{id}/attachments/{attachmentId}Get metrics backfill status
TypeScript
GET /v1/projects/{projectId}/metrics/backfillGet metrics SQL schema
TypeScript
GET /v1/projects/{projectId}/metrics/queryGet webhook destination
TypeScript
GET /v1/projects/{projectId}/webhooks/destinations/{destinationId}Get webhook event schema
TypeScript
GET /v1/projects/{projectId}/webhooks/event-types/{eventType}/schemaCreate project API key
TypeScript
POST /v1/projects/{projectId}/api-keysCreate webhook destination
TypeScript
POST /v1/projects/{projectId}/webhooks/destinationsQuery metrics
TypeScript
POST /v1/projects/{projectId}/metrics/queryRetry webhook delivery
TypeScript
POST /v1/projects/{projectId}/webhooks/destinations/{destinationId}/retriesRotate webhook signing secret
TypeScript
POST /v1/projects/{projectId}/webhooks/destinations/{destinationId}/secret-rotationsUpload attachment
TypeScript
POST /v1/projects/{id}/attachmentsUpdate project
TypeScript
PATCH /v1/projects/{projectId}Update project API key permissions
TypeScript
PATCH /v1/projects/{projectId}/api-keys/{apiKeyId}Update webhook destination
TypeScript
PATCH /v1/projects/{projectId}/webhooks/destinations/{destinationId}Delete project
TypeScript
DELETE /v1/projects/{projectId}Delete webhook destination
TypeScript
DELETE /v1/projects/{projectId}/webhooks/destinations/{destinationId}Revoke project API key
TypeScript
DELETE /v1/projects/{projectId}/api-keys/{apiKeyId}

Resources

Models

AttachmentPage

array of Attachment
required
string
Continue with this token, even if items is empty. Omitted when no more pages remain.

ListProjectApiKeysResponse

array of ApiKey
required

ListWebhookApiVersionsResponse

array of WebhookApiVersion
required
"@photon-hq/contracts"
required
string
required

WebhookDestinationPage

array of WebhookDestination
required
string

ListWebhookEgressAddressesResponse

array of string (ipv4)
required
Every public IPv4 address webhook deliveries can originate from. Allow-list all of them; deliveries are spread across every address.

ListWebhookEventTypesResponse

One of: SelectableWebhookEventCatalog
string (date)
required
"@photon-hq/contracts"
required
array of WebhookEventType
required
string
required
WebhookApiVersionRetirement | null
required
true
required
SelectableWebhookApiVersionStatus
required
string (date) | null
required
One of: DeprecatedWebhookEventCatalog
string (date)
required
"@photon-hq/contracts"
required
array of WebhookEventType
required
string
required
WebhookApiVersionRetirement
required
false
required
"deprecated"
required
string (date) | null
required

Project

AgentProfile
required
ProjectBillingInitialization
string (date-time)
required
string | null
required
string | null
required
ProjectCreatedByActorKind | null
required
string (date-time) | null
required
string
required
string
required
string
required
string
required
string (date-time)
required

Attachment

string
required
string (date-time)
required
string
string
required
object
string
required
integer
required
string (date-time)
required

GetMessageMetricsBackfillResponse

integer
required
string (date-time) | null
required
integer
required
MessageMetricsBackfillState
required
string (date)
required

GetMessageMetricsSqlSchemaResponse

MessageMetricsSqlCapabilities
required
string
required
MessageMetricsSqlLimits
required
true
required
array of MessageMetricsSqlTable
required
string (date)
required

WebhookDestination

string (date)
required
string (date-time)
required
string (date-time) | null
required
string | null
required
string
required
WebhookEventSelection
required
string
required
string
required
WebhookDestinationStatus
required
string (date-time)
required
string (uri)
required

CreateProjectApiKeyResponse

ApiKey
required
string
required

CreateWebhookDestinationResponse

WebhookDestination
required
string
required

QueryMessageMetricsResponse

array of MessageMetricsQueryColumn
required
array of array of object
required
MessageMetricsQueryStatistics
required

RetryWebhookDeliveryResponse

"accepted"
required

RotateWebhookSigningSecretResponse

string (date-time) | null
required
string
required

ProjectApiKeyResponse

ApiKey
required