openapi: 3.0.3 info: title: 'CRM API Documentation' description: '' version: 1.0.0 servers: - url: 'https://api.reallysimplesystems.com' tags: - name: 'Records Management' description: '' - name: 'Insights Management' description: '' - name: 'Digital Activities Management' description: '' - name: 'Document Management' description: '' - name: 'Field Management' description: 'Please note: the /api/datadictionary route is for legacy purposes, and the /api/fields route should be used going forwards.' - name: Lookups description: 'Endpoints related to lookups' - name: 'User Info' description: '' components: securitySchemes: default: type: http scheme: bearer description: 'You can retrieve your token by visiting your dashboard and clicking Generate API token.' security: - default: [] paths: '/api/{objectNames}': get: summary: 'Fetch a paginated list of records' operationId: fetchAPaginatedListOfRecords description: 'Retrieves a paginated list of records for the specified object type. Supports filtering parameters.' parameters: - in: query name: limit description: 'The number of records per page. Defaults to 20.' example: 20 required: false schema: type: integer description: 'The number of records per page. Defaults to 20.' example: 20 - in: query name: page description: 'The page number to retrieve. Defaults to the first page.' example: 1 required: false schema: type: integer description: 'The page number to retrieve. Defaults to the first page.' example: 1 - in: query name: order description: 'A JSON object specifying the fields to order by and their direction (`asc` or `desc`). Each key is a field name, and the value is the sort direction. Example: `{"name": "asc", "created_at": "desc"}`. Field names are case-insensitive.' example: null required: false schema: type: object description: 'A JSON object specifying the fields to order by and their direction (`asc` or `desc`). Each key is a field name, and the value is the sort direction. Example: `{"name": "asc", "created_at": "desc"}`. Field names are case-insensitive.' example: null properties: {} - in: query name: q description: "A JSON object specifying filters for the records. Example: `?q={“name”: “Test”}` or `?q={“name”: “Test”, “sector”: “Design”}`. The query allows using fields and operators for complex queries. Below are the supported operators and their usage:\n
| Operator | \nDescription | \nExample | \n
|---|---|---|
$not | \n Negation logical operator | \n{\"field\": {\"$not\": val}} | \n
$in | \n Match any value in array | \n{\"field\": {\"$in\": [value1, value2, ...]}} | \n
$nin | \n Not match any value in array | \n{\"field\": {\"$nin\": [value1, value2, ...]}} | \n
$or | \n Logic operator | \n{\"$or\": [{\"field\": value}, {\"field\": value}]} | \n
$gt | \n Greater than | \n{\"field\": {\"$gt\": 1000}} | \n
$gte | \n Greater than or equal | \n{\"field\": {\"$gte\": 1000}} | \n
$lt | \n Less than | \n{\"field\": {\"$lt\": 1000}} | \n
$lte | \n Less than or equal | \n{\"field\": {\"$lte\": 1000}} | \n
$bt | \n Between value1 and value2 inclusive | \n{\"field\": {\"$bt\": [1000, 2000]}} | \n
$sw | \n Starts with | \n{\"field\": {\"$sw\": \"tes\"}} | \n
$ew | \n Ends with | \n{\"field\": {\"$ew\": \"tes\"}} | \n
$con | \n Contains | \n{\"field\": {\"$con\": \"tes\"}} | \n
| Operator | \nDescription | \nExample | \n
|---|---|---|
$not | \n Negation logical operator | \n{\"field\": {\"$not\": val}} | \n
$in | \n Match any value in array | \n{\"field\": {\"$in\": [value1, value2, ...]}} | \n
$nin | \n Not match any value in array | \n{\"field\": {\"$nin\": [value1, value2, ...]}} | \n
$or | \n Logic operator | \n{\"$or\": [{\"field\": value}, {\"field\": value}]} | \n
$gt | \n Greater than | \n{\"field\": {\"$gt\": 1000}} | \n
$gte | \n Greater than or equal | \n{\"field\": {\"$gte\": 1000}} | \n
$lt | \n Less than | \n{\"field\": {\"$lt\": 1000}} | \n
$lte | \n Less than or equal | \n{\"field\": {\"$lte\": 1000}} | \n
$bt | \n Between value1 and value2 inclusive | \n{\"field\": {\"$bt\": [1000, 2000]}} | \n
$sw | \n Starts with | \n{\"field\": {\"$sw\": \"tes\"}} | \n
$ew | \n Ends with | \n{\"field\": {\"$ew\": \"tes\"}} | \n
$con | \n Contains | \n{\"field\": {\"$con\": \"tes\"}} | \n