Get all the collections that the current user is allowed to access.
GET
/
markets
/
collections
curl--request GET \--url https://api.forestreet.com/markets/collections \--header'x-api-key: <api-key>'
{"meta":{"totalItems":2},"collections":[{"id":411,"name":"Staging Markets","description":"A collection of all unverified markets; this is the default location for all new markets.","createdDate":"2022-12-11T10:09:08.000Z","isDefault":1},{"id":123,"name":"Verified Market Archives","description":"A collection of all manually validated markets.","createdDate":"2022-01-01T02:03:04.000Z","isDefault":0}]}
A user can include markets in a market collection to categorise their list of markets
they have access to. Any market can only exists in a single collection at a time, and
each user starts with a default collection that all markets will belong to by default.
Collections are useful for users to group markets together for specific purposes, for example:
markets that are generated for a specific project,
markets that are reviewed by QA team,
markets that are archived due to change in business needs.
This endpoints return all the collections that the user API Key has permission to
access. Use this endpoint to fetch the collection desired, before using the collectionId
query parameter in selected endpoints to filter your results to the given collection.
{"meta":{"totalItems":2},"collections":[{"id":411,"name":"Staging Markets","description":"A collection of all unverified markets; this is the default location for all new markets.","createdDate":"2022-12-11T10:09:08.000Z","isDefault":1},{"id":123,"name":"Verified Market Archives","description":"A collection of all manually validated markets.","createdDate":"2022-01-01T02:03:04.000Z","isDefault":0}]}
curl--request GET \--url https://api.forestreet.com/markets/collections \--header'x-api-key: <api-key>'
{"meta":{"totalItems":2},"collections":[{"id":411,"name":"Staging Markets","description":"A collection of all unverified markets; this is the default location for all new markets.","createdDate":"2022-12-11T10:09:08.000Z","isDefault":1},{"id":123,"name":"Verified Market Archives","description":"A collection of all manually validated markets.","createdDate":"2022-01-01T02:03:04.000Z","isDefault":0}]}