Getting started
Concepts
- Model concepts
- API concepts
- API versions
- Entitlements
- Filters
- Request parameters
- Usage quota
- Error codes
Services
Parameters
- after
- aggregate
- aggregateIncrementFrom
- cursor
- dateFormat
- descending
- entity
- envelope
- fields
- format
- from
- groupBy
- groupById
- groupByIdAndTime
- groupByTo
- includeMetaData
- inline
- inlineLatest
- inlineTimeseries
- limit
- modulus
- nextUrl
- part
- pivot
- rankBy
- requestTimeout
- returnPreSignedUrl
- showMessage
- showStreamCursor
- to
- trace
- verifyLinks
- wait
Deprecated parameters
Datasets
- ECR: timeseries and observations
- ECR: usage patterns
- fiindices: retrieving index data
- Parsing: asset classes
- Parsing: best practices
Samples
Parsing: best practices
This topic applies to the parsing dataset.
Attachments
Parsing messages can contain attachments. They are downloaded with the Attachments service. The field Message.hasAttachment indicates whether a message has attachments.
The MessageDetail entity describes the attachments. To get a MessageDetail record, inline it in a Quote or Message request:
https://consumer.qa.data.spglobal.com/parsing/Quote/latest?inline=MessageDetailhttps://consumer.qa.data.spglobal.com/parsing/Message/latest?inline=MessageDetail
Note: MessageDetail cannot be requested directly. It can only be requested by inlining it in a Quote or Message. See inline.
MessageDetail.attachments is an array that holds, for each attachment, the attachmentFileName, the attachmentId and the quoteCount, the number of quotes in the attachment.
With the Message.id and the attachmentId you can download the attachment:
https://consumer.qa.data.spglobal.com/parsing/Message/MESSAGE_ID/messageDetail/attachments/attachmentId/ATTACHMENT_ID
Send your credentials in the Authorization header, as for any request.
Filtering the latest service
The Quote collection is very large. To get fast responses when you filter the latest service with filters:
- Add
sortBy=autoso that the service selects the most suitable index. This applies to API version 1; in version 2 the selection is automatic. sortBychanges the format of the after value, so also setenvelope=true. The envelope contains theaftervalue for the next page.
https://consumer.qa.data.spglobal.com/parsing/Quote/latest?...&sortBy=auto&envelope=true