Skip to content

Get a collection

Retrieving collection details

This endpoint lets you fetch information about a specific collection in Tallyfy Answers using its unique name. You’ll get collection metadata, schema information, and object counts in the response.

API endpoint

GET /v1/collections/{collection_name}

Path parameters

ParameterTypeRequiredDescription
collection_namestringYesName of the collection to retrieve

Response

On success, you’ll receive a 200 OK status code and a JSON response containing:

{
"name": "products",
"description": "Collection of product information",
"schema": {
"name": {
"type": "string"
},
"description": {
"type": "string"
},
"price": {
"type": "number"
},
"categories": {
"type": "string[]"
}
},
"object_count": 142,
"created_at": "2023-08-15T14:32:21Z",
"updated_at": "2023-09-01T09:45:33Z"
}

Response fields

FieldTypeDescription
namestringThe collection’s unique identifier
descriptionstringOptional description of the collection
schemaobjectSchema that’s auto-detected based on indexed objects1
object_countnumberTotal number of objects in the collection
created_atstringISO timestamp when the collection was created
updated_atstringISO timestamp when the collection was last modified

Error scenarios

StatusDescription
404Collection not found
400Invalid collection name format

Example request

Terminal window
curl -X GET https://go.tallyfy.com/api/collections/products \
-H "X-Answers-API-Key: your_api_key"

Common uses

  • Checking a collection’s current schema
  • Verifying the number of objects in a collection
  • Retrieving collection metadata before performing operations
  • Confirming a collection exists before adding objects

Objects > Get an object

Retrieve a specific object from a Tallyfy Answers collection using its unique identifier…

Answers > Collections

Collections in Tallyfy Answers group similar objects together, like database tables. They…

Footnotes

  1. Schema types are inferred from first 100 objects; explicit schemas can override auto-detection