Application Webapp Origins V2

Add Application Webapp Allowed Origin

Changed on

Adds a browser origin (scheme + host only) to the allowlist. Requires applications:write scope.

post/v2/applications/{application_id}/webapp_origins

Request

  • Base URL
    https://api.superwall.com
  • URL
    https://api.superwall.com/v2/applications/{application_id}/webapp_origins
  • Auth
    • HTTP bearer
    • or API key in cookie accounts_superwall_token
    • or HTTP bearer

Path parameters

application_idstring required

Request body

originstring required

Browser origin to allow (scheme + host only)

Response

Success

idstring required
object'application_webapp_origin' required

Object type, always application_webapp_origin

application_idstring required
originstring required

Allowed browser origin (scheme + host only, e.g. https://merchant.com)

created_atstring required

ISO 8601 timestamp of when the origin was added

Changes

    • warning

      added the new credentials_missing enum value to the / response property for the response status

    • warning

      added the new credentials_missing enum value to the / response property for the response status

    • warning

      added the new credentials_missing enum value to the / response property for the response status

    • warning

      added the new credentials_missing enum value to the / response property for the response status

    • warning

      added the new credentials_missing enum value to the / response property for the response status

    • warning

      added the new credentials_missing enum value to the / response property for the response status

    • info

      added subschema #1 subschema #2 subschema #3 subschema #4 subschema #5 to the response body anyOf list for the response status

    • info

      removed subschema #1 subschema #2 subschema #3 subschema #4 subschema #5 from the response body anyOf list for the response status

    • info

      added the non-success response with the status