All-Images.ai
My Account
  • Welcome
  • All-Images.ai API
    • Overview
    • Authentication
    • Errors
    • Pagination
    • API Reference
      • Images
      • Images generation
      • API Keys
      • API Keys Webhook
    • API Explorer
  • Integration guide
    • Image generation
      • Create Image generation
      • Lifecycle of Image generation
    • Webhooks
      • Image generation
  • Changelog
    • API
Powered by GitBook
On this page

Was this helpful?

  1. All-Images.ai API
  2. API Reference

API Keys Webhook

PreviousAPI KeysNextImage generation

Last updated 1 year ago

Was this helpful?

Subscribe

Unsubscribe

Remove webhook endpoint from an API key

delete
Path parameters
apiWebhookIdstringRequired
Header parameters
api-keystringRequired
Responses
201Success
400Error
500Error
delete
DELETE /v1/api-keys/webhook/unsubscribe/{apiWebhookId} HTTP/1.1
Host: 
api-key: text
Accept: */*

No content

  • Subscribe
  • POSTAdd webhook endpoint to an API key
  • Unsubscribe
  • DELETERemove webhook endpoint from an API key

Add webhook endpoint to an API key

post
Header parameters
api-keystringRequired
Body
urlstringRequired
Responses
201Success
application/json
400Error
500Error
post
POST /v1/api-keys/webhook/subscribe HTTP/1.1
Host: 
api-key: text
Content-Type: application/json
Accept: */*
Content-Length: 32

{
  "url": "text",
  "events": [
    "test"
  ]
}
{
  "webhookId": "text"
}