Skip to main content
Use curl and jq to register a test device, choose an effect from the live catalog, upload a JPEG, and download the result. Ask the Backapp team for an AppKey for your test app and the API origin for its environment. The production origin is https://api.backapp.dev. Use an origin without a trailing slash or /v2. The image-processing request can incur provider charges.

Configure the example

Set these variables in the same shell. Replace the example AppKey, use a stable ID for your test installation, and place a JPEG named sample.jpg in your current directory.

Register the device

Continue when you have an access token. The response also includes user_id, refresh_token, and a subscription summary. See Authentication for token handling.

Choose an effect

Pick an integer ID from your response and assign it to BACKAPP_EFFECT_ID.

Apply the effect and download the result

The API returns HTTP 200 with image_url once processing completes. Open the downloaded file to see the result. An optional prompt form field overrides the effect’s configured prompt when it is nonempty. See Errors and retries if a command fails.