---
updatedAt: 2026-10-29T11:54:48.000Z
agentTools:
  projectIndex: https://docs.yotpo.com/llms.txt
---

# Create app subscription

Create an app webhook subscription

> 👍 How to use this endpoint
>
> To see an example request, click **Examples** in the payload on the right.

> 📘 `target_id`, `filter_id` and `active` are all required. Get the IDs from [Create target](https://docs.yotpo.com/reference/partners-create-target) and [Create filter](https://docs.yotpo.com/reference/partners-create-filter).

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "App partners API",
    "description": "Endpoints for apps that Yotpo merchants install. The app-level webhook is defined separately, in webhooks.json.",
    "version": "2"
  },
  "servers": [
    {
      "url": "https://developers.yotpo.com"
    }
  ],
  "security": [
    {
      "X-Yotpo-Token": []
    }
  ],
  "x-readme": {
    "headers": [],
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "paths": {
    "/core/v3/applications/{application_id}/webhooks/subscriptions": {
      "post": {
        "summary": "Create app subscription",
        "description": "Create an app webhook subscription",
        "operationId": "create-app-subscription",
        "parameters": [
          {
            "name": "application_id",
            "in": "path",
            "description": "Your app's client ID: the 32-character ID you received when you registered your app, the same value you send as `client_id` to [Generate Access Token](ref:generate-a-token). It isn't the numeric app ID: that returns `403 {\"message\": \"Forbidden\"}`.",
            "schema": {
              "type": "string"
            },
            "required": true,
            "example": "YOUR_CLIENT_ID"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "webhook_subscription"
                ],
                "properties": {
                  "webhook_subscription": {
                    "type": "object",
                    "description": "The target, filter and tenant status required for the subscription",
                    "required": [
                      "target_id",
                      "filter_id",
                      "active"
                    ],
                    "properties": {
                      "target_id": {
                        "type": "integer",
                        "description": "The Yotpo ID of the webhook target (`yotpo_id` from Create target)."
                      },
                      "filter_id": {
                        "type": "integer",
                        "description": "The Yotpo ID of the webhook filter (`yotpo_id` from Create filter)."
                      },
                      "active": {
                        "type": "boolean",
                        "description": "The status of the subscription"
                      }
                    }
                  }
                }
              },
              "examples": {
                "Create subscription": {
                  "value": {
                    "webhook_subscription": {
                      "target_id": 1234,
                      "filter_id": 1234,
                      "active": true
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "201",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"webhook_subscription\": {\n    \"yotpo_id\": 1234\n  }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "webhook_subscription": {
                      "type": "object",
                      "properties": {
                        "yotpo_id": {
                          "type": "integer",
                          "description": "The Yotpo ID of the new object.",
                          "example": 1234
                        }
                      },
                      "description": "The created subscription."
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Unexpected input": {
                    "value": "{\n  \"errors\": [\n    {\n      \"message\": \"unexpected input: <reason>\"\n    }\n  ]\n}"
                  },
                  "Subscription is missing <property> definition": {
                    "value": "{\n  \"errors\": [\n    {\n      \"message\": \"webhook subscription is missing a <property> definition\"\n    }\n  ]\n}"
                  },
                  "Subscription contains an invalid value for <property>": {
                    "value": "{\n  \"errors\": [\n    {\n      \"message\": \"webhook subscription contains an invalid value for <property>: <error-description>\"\n    }\n  ]\n}"
                  }
                },
                "schema": {
                  "oneOf": [
                    {
                      "title": "Unexpected input",
                      "type": "object",
                      "properties": {
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "message": {
                                "type": "string",
                                "example": "unexpected input: <reason>",
                                "description": "What's wrong with the request, usually naming the missing or invalid field. Meant for logs; the wording can change, so don't parse it."
                              }
                            }
                          },
                          "description": "The validation errors. Usually one item."
                        }
                      }
                    },
                    {
                      "title": "Subscription is missing <property> definition",
                      "type": "object",
                      "properties": {
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "message": {
                                "type": "string",
                                "example": "webhook subscription is missing a <property> definition",
                                "description": "What's wrong with the request, usually naming the missing or invalid field. Meant for logs; the wording can change, so don't parse it."
                              }
                            }
                          },
                          "description": "The validation errors. Usually one item."
                        }
                      }
                    },
                    {
                      "title": "Subscription contains an invalid value for <property>",
                      "type": "object",
                      "properties": {
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "message": {
                                "type": "string",
                                "example": "webhook subscription contains an invalid value for <property>: <error-description>",
                                "description": "What's wrong with the request, usually naming the missing or invalid field. Meant for logs; the wording can change, so don't parse it."
                              }
                            }
                          },
                          "description": "The validation errors. Usually one item."
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid access token. Send a valid token in the `X-Yotpo-Token` header.",
            "content": {
              "application/json": {
                "examples": {
                  "Missing token": {
                    "summary": "No token sent (or sent as Authorization: Bearer)",
                    "value": {
                      "error": "invalid_request",
                      "error_description": "The access token is missing"
                    }
                  },
                  "Invalid token": {
                    "summary": "Token unknown, revoked or for another app",
                    "value": {
                      "error": "invalid_token",
                      "error_description": "The access token is invalid or has expired"
                    }
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "OAuth error code: `invalid_request` when no token was sent, `invalid_token` when the token is unknown, revoked or expired.",
                      "enum": [
                        "invalid_request",
                        "invalid_token"
                      ]
                    },
                    "error_description": {
                      "type": "string",
                      "description": "Human-readable reason for the error."
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "`application_id` isn't your app's client ID (for example, you sent the numeric app ID).",
            "content": {
              "application/json": {
                "examples": {
                  "Wrong application_id": {
                    "value": {
                      "message": "Forbidden"
                    }
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Always `Forbidden`."
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "409",
            "content": {
              "application/json": {
                "examples": {
                  "Subscription already exist": {
                    "value": "{\n  \"errors\": [\n    {\n      \"message\": \"webhook subscription already exists\"\n    }\n  ]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "message": {
                            "type": "string",
                            "example": "webhook subscription already exists",
                            "description": "Says that an object with the same identifier already exists."
                          }
                        }
                      },
                      "description": "The errors. Usually one item."
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "422",
            "content": {
              "application/json": {
                "examples": {
                  "Entity not found": {
                    "value": "{\n  \"errors\": [\n    {\n      \"message\": \"related <entity-name> not found\"\n    }\n  ]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "message": {
                            "type": "string",
                            "example": "related <entity-name> not found",
                            "description": "Says which related object (target or filter) doesn't exist."
                          }
                        }
                      },
                      "description": "The errors. Usually one item."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "500",
            "content": {
              "application/json": {
                "examples": {
                  "Unexpected error": {
                    "value": "{\n  \"errors\": [\n    {\n      \"message\": \"unexpected error, try again later\"\n    }\n  ]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "message": {
                            "type": "string",
                            "example": "unexpected error, try again later",
                            "description": "A general error message. Retry with backoff."
                          }
                        }
                      },
                      "description": "The errors. Usually one item."
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "components": {
    "securitySchemes": {
      "X-Yotpo-Token": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Yotpo-Token",
        "description": "Send your app's access token for the merchant's store in the `X-Yotpo-Token` header of every request. To get a token, see [Generate Access Token](ref:generate-a-token). The API also reads the token from an `access_token` query parameter, but that isn't recommended: URLs end up in server and proxy logs. `Authorization: Bearer` is not supported."
      }
    }
  }
}
```

# Sibling pages

* [Retrieve app subscriptions](https://docs.yotpo.com/reference/retrieve-app-subscriptions.md)
* [Retrieve app subscription by ID](https://docs.yotpo.com/reference/retrieve-app-subscription-by-id.md)
* [Update app subscription](https://docs.yotpo.com/reference/update-app-subscription.md)
* [Delete app subscription](https://docs.yotpo.com/reference/delete-app-subscription.md)