Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Contact Us
  • Home
  • Installation & Developers
  • API & Data

HTTP API (Developer)

Learn more about the HTTP API as a way to add individual user events and profiles to your Appcues account.

Written by Sofia Domingues

Updated at May 20th, 2025

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Installation & Developers
    Installing Appcues Web Installing Appcues Mobile API & Data Troubleshooting Extras
  • Installation & Developers
    Installing Appcues Web Installing Appcues Mobile API & Data Troubleshooting Extras
  • Web Experiences
    Building Web Experiences Targeting Studio Customization & Styling Use Cases Troubleshooting FAQ
  • Mobile Experiences
    Installation & Overview Building Mobile Experiences Mobile Analytics & Integrations Troubleshooting
  • Workflows
    Building & Configuration Use Cases Workflow Analytics and Integrations
  • Account Management
    Subscription Users & Data
  • Analytics
    Experience and Event Analytics Data
  • Best Practices
    Best Practices Use Cases Pro Tips Product-led Growth
  • Integrations
    Integration Documents Use Cases Extras
+ More
  • Home

  • Installation & Developers

    • Installation & Developers

      • Web Experiences

        • Mobile Experiences

          • Workflows

            • Account Management

              • Analytics

                • Best Practices

                  • Integrations

                    The Appcues API provides an HTTP endpoint for adding individual user events and profiles to your Appcues account. These events and profile updates or “user activity”, can be used for targeting the right content to the right end users.

                    Note: Use our Public API for any bulk importing and exporting of user data.

                     

                    Base URL

                    The root URL for the Appcues API is https://api.appcues.com/

                    Making Requests

                    The user activity endpoint accepts POST requests, JSON-formatted, which must contain a  Content-Type: application/json header.

                    Submission URL
                    Submissions must include:

                    • your Appcues account ID (from the account page)
                    • the end user's ID (the first parameter to your Appcues.identify() call).
                    • A `Content-Type: application/json` header.

                    Note: If the end user ID submitted does not exist in Appcues, a new user will be created with that ID.

                    When complete, the URL should look like this:

                    https://api.appcues.com/v1/accounts/{account id}/users/{user id}/activity

                    Request body

                    The request body must be a JSON-formatted object, containing one or both of the following parameters:

                    • events Array of event objects, defined below.
                    • profile_update Object containing arbitrary key-value data to update in the user's stored profile.
                    • request_id (Optional) Arbitrary string which can be used to identify this request. The request_id will be returned in the response.

                    Sending events

                    Each event you send is an object included in an events array. Each event object should contain the following parameters:

                    • name Event name. This is the main mechanism for grouping and targeting on specific events. Max 127 characters.
                    • timestamp Time at which the event occurred, in either integer format (as Unix time) or string format (as ISO 8601 compliant date, e.g. 2016-01-13T13:05:22.000Z).
                    • attributes Object containing arbitrary key-value data describing details of the event. Optional
                    "events": [
                        {
                          "name": "clicked widget",
                          "timestamp": 1452854179,
                          "attributes": {
                            "widget_color": "blue",
                            "ab_group": "a"
                          }
                        },
                        {
                          "name": "purchased a plan",
                          "timestamp": 1452855000,
                          "attributes": {
                            "plan_tier": "Enterprise",
                          }
                        }
                    ]

                    Note on reserved event names: Appcues reserves events with names beginning with appcues: for internal use.

                    Note on timestamps: If you are interested in using the example above for a test event, we recommend using an updated timestamp. Events with older timestamps may not appear in Studio lists. 

                    Sending user profile properties

                    Each profile update you send is a key value pair in the profile_update object, with no required parameters.

                    "profile_update": {
                      "team": "Product",
                      "tier": "Beginner"
                    }

                    Example request

                    Here is an example of a valid API request, including both events and profile updates, with the account ID 123 and user ID 456:

                    curl https://api.appcues.com/v1/accounts/123/users/456/activity \
                      -X POST -H "Content-Type: application/json" -d '
                    {
                      "request_id": "abc123",
                      "events": [
                        {
                          "name": "clicked widget",
                          "timestamp": 1452854179,
                          "attributes": {
                            "widget_color": "blue",
                            "ab_group": "a"
                          }
                        }
                      ],
                      "profile_update": {
                        "favorite team": "Red Sox",
                        "favorite boat type": "Duck"
                      }
                     }

                    Response format

                    A successful user activity submission will result in a response of true:

                    {"ok":true}

                    Error Handling

                    An unsuccessful request will have a response containing information about the error that occurred:

                    {"error":true,"message":{"description":"no route found for POST /v1/accounts/users/K/activity (ApiWeb.Router)","title":"no route found for POST /v1/accounts/users/K/activity (ApiWeb.Router)","type":"error"},"status_code":404}

                    We recommend building retry logic to handle potential errors.

                    Was this article helpful?

                    Yes
                    No
                    Give feedback about this article

                    Related Articles

                    • Javascript API (Developer)
                    • Flow Events Reference (Developer)
                    • Working with Client-Side Appcues Events (Developer)
                    • Appcues Public API
                    • Appcues Events Reference
                    DON'T TAKE OUR WORD FOR IT

                    Start building with Appcues for free

                    Try before you buy
                    No credit card required
                    Support included
                    Start building for freeBook a demo
                    or take an interactive tour
                    Appcues logo

                    Product

                    In-app messaging
                    Email
                    Push notifications
                    Workflows
                    Data
                    How it works
                    Pricing
                    What's new

                    Use cases

                    Onboarding
                    Free-trial conversion
                    Feature adoption
                    Feedback
                    Support

                    Integrations

                    Why connect
                    All integrations
                    All workflows

                    Company

                    About
                    Careers
                    HIRING
                    Why Appcues
                    Teams
                    Customers

                    Support

                    Request a demo
                    Start free trial
                    Developer Docs
                    Help Center
                    Customer Success
                    Contact

                    Resources

                    Product Adoption Academy
                    Courses
                    Workshops
                    Templates
                    Examples
                    Made with Appcues
                    The Appcues Blog
                    PLG Collective
                    Product-led Experience Report
                    The Product Experience Playbook
                    The Product-Led Growth Flywheel
                    © 2025 Appcues. All rights reserved.
                    SecurityTerms of ServiceWebsite Terms of UsePrivacy PolicyCookie Preferences
                    Expand