PetstoreAPI Docs
Modern Petstore APIClassic Petstore APIBlog
Modern Petstore APIClassic Petstore APIBlog
  1. Webhooks
  • Modern Pet Store API: A New Gold Standard for OpenAPI
  • Pet
    • Get Pet
      GET
    • Update Pet
      PUT
    • Delete Pet
      DELETE
    • Create Pet
      POST
    • List Pets
      GET
    • Upload Pet Image
      POST
  • Chat
    • Create Chat Completion
      POST
  • Payments
    • Pay Order
      POST
  • Store
    • List Inventory
      GET
    • Create Order
      POST
    • Get Order
      GET
    • Delete Order
      DELETE
    • Callback Example
      POST
  • User
    • Create User
      POST
    • Update User
      PUT
    • Get User
      GET
    • Delete User
      DELETE
    • Login
      POST
    • Logout
      POST
  • Webhooks
    • Pet Adopted Event
    • New Pet Available Event
  • Schemas
    • Pet
    • PetCollection
    • User
    • OrderPayment
    • Bank Card
    • Bank Account
    • Category
    • Links
    • Order
    • ApiResponse
    • Tag
    • Error
Modern Petstore APIClassic Petstore APIBlog
Modern Petstore APIClassic Petstore APIBlog
  1. Webhooks

Pet Adopted Event

Webhook
POST
petAdopted
Triggered when a pet is successfully adopted. The webhook will be sent to the URL configured in your account settings.

Request

Authorization
OAuth 2.0
Authorization Code
deviceCode
Add the parameter
Authorization
to Headers
,whose value is to concatenate the Token after the Bearer.
Example:
Authorization: Bearer ********************
Authorize URL: https://auth.petstoreapi.com/authorize
Token URL: https://auth.petstoreapi.com/token
Refresh URL: https://auth.petstoreapi.com/refresh
or
JWT Bearer
Add the parameter
Authorization
to Headers
Example:
Authorization: ********************
or
or
Body Params application/jsonRequired

Examples

Responses

🟢200
Webhook received successfully
This response does not have a body.
🟠401
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://your-api-server.com' \
--header 'Content-Type: application/json' \
--data-raw '{
    "eventId": "evt_8d3f9a2b-1c4e-5f6g-7h8i-9j0k1l2m3n4o",
    "eventType": "pet.adopted",
    "timestamp": "2024-12-15T14:30:00Z",
    "data": {
        "pet": {
            "id": "pet_c4t_5x7k9m",
            "species": "CAT",
            "name": "Whiskers",
            "breed": "Domestic Shorthair",
            "ageMonths": 18,
            "status": "adopted"
        },
        "adoption": {
            "id": "adp_7h3k9m2q",
            "completedAt": "2024-12-15T14:30:00Z"
        },
        "adopter": {
            "id": "usr_9k2m4n6p",
            "name": "Jane Smith",
            "email": "jane.smith@example.com"
        }
    }
}'
Modified at 2025-12-17 08:25:04
Previous
Logout
Next
New Pet Available Event
Built with