-
Notifications
You must be signed in to change notification settings - Fork 35
API
Touchpoints makes customer feedback easier for federal agencies,
and Touchpoints API provides an convenient, programmatic way to access the data for your Forms and Responses.
To access the Touchpoints API, an api.data.gov API Key is required. If you have an existing api.data.gov API key, enter it on your Touchpoints profile page.
There are 2 versions of the API:
- Version 0 (BETA) - https://api.gsa.gov/test/analytics/touchpoints/v0/*
- Version 1 - https://api.gsa.gov/test/analytics/touchpoints/v1/*
Requests to api.gsa.gov/test/ are routed to touchpoints-staging.app.cloud.gov app at /api/v0/ and /api/v1/ respectively.
There are 2 versions of the API:
- Version 0 (BETA) - https://api.gsa.gov/analytics/touchpoints/v0/*
- Version 1 - https://api.gsa.gov/analytics/touchpoints/v1/*
Requests through the api.gsa.gov gateway are routed to the Touchpoints app at /api/v0/ and /api/v1/ respectively.
GET /api/v1/forms-
GET /api/v1/forms/:id- also returns an array of Responses, or "submissions" GET /api/v1/service_providersGET /api/v1/servicesGET /api/v1/collectionsGET /api/v1/websites
-
page_size- value can be set between 1 to 500. defaults to 500 -
page- defaults to 1 -
start_date- set in YYYY-MM-DD format. defaults to 1 year ago -
end_date- set in YYYY-MM-DD format. defaults to tomorrow
For the /v0 api:
https://api.gsa.gov/analytics/touchpoints/v0/forms.json
For the /v1 api:
https://api.gsa.gov/analytics/touchpoints/v1/forms.json https://api.gsa.gov/analytics/touchpoints/v1/forms/FORM-SHORT-UUID.json
In production, the API_KEY should be passed using the header X-Api-Key as described here.
For a quick test, try https://api.gsa.gov/analytics/touchpoints/v1/forms.json?API_KEY=YOUR-API-DATA-GOV-KEY
Complete OpenAPI documentation is available via https://touchpoints.app.cloud.gov/api/.
Please provide feedback at feedback-analytics@gsa.gov, or to the feedback form at https://touchpoints.digital.gov, or https://github.com/gsa/touchpoints/issues/new.
- Form Elements
- Form Templates
- Form Markup
- Delivery Options
- Creating a Form Template
- Deploying via GTM
- Analytics Events
- Organization Form Approval
- Tagging Responses
- Reporting: Form Reports
- Data Collections
- CX Data Collection Format
- CX Performance Data
- Data Collection Rating
- A-11 PRA Guidance
- CSCRM Data Collection
- IDC Services Data Collection