Records for entity
GET
/api/v1/records/for/{entity_type}/{entity_id}
const url = 'https://app.ayna.com/api/v1/records/for/example/example?limit=100&offset=0';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://app.ayna.com/api/v1/records/for/example/example?limit=100&offset=0' \ --header 'Authorization: Bearer <token>'Get all records attached to a specific entity.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”entity_type
required
Entity Type
string
entity_id
required
Entity Id
string
Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”OK
Media typeapplication/json
Response
object
key
additional properties
any
Example generated
{}