Preview an existing data feed
POST
/api/v3/curations/data-feeds/{feedUniqueId}/preview
const url = 'https://api.tryletterhead.com/api/v3/curations/data-feeds/example/preview?api=true';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"feedUrl":"example","bearerToken":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url 'https://api.tryletterhead.com/api/v3/curations/data-feeds/example/preview?api=true' \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "feedUrl": "example", "bearerToken": "example" }'Same as Preview a data feed URL, for a feed that’s already been created — still requires
feedUrl (typically the feed’s current URL, or a new one you’re testing before saving an
update). Leave bearerToken blank to test with the credential already stored on the feed
instead of fetching unauthenticated.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” feedUniqueId
required
string
The data feed’s unique identifier, from List data feeds.
Query Parameters
Section titled “Query Parameters ” api
required
boolean
Required. Set to true to authenticate with your company API key rather than a signed-in session.
Request Body required
Section titled “Request Body required ” Media type application/json
object
feedUrl
required
string
bearerToken
Plaintext, used only for this one test fetch. Blank means test with the feed’s already-stored credential.
string
Example generated
{ "feedUrl": "example", "bearerToken": "example"}Responses
Section titled “ Responses ”200 OK
Media type application/json
object
items
object
itemCount
integer
fields
Array<object>
object
path
string
sample
string
message
string
total
integer
Example generated
{ "items": { "itemCount": 1, "fields": [ { "path": "example", "sample": "example" } ] }, "message": "example", "total": 1}Still can’t find what you need? Contact support.