---
updatedAt: 2025-05-12T20:32:33.000Z
agentTools:
  projectIndex: https://gainfully.readme.io/llms.txt
---

# Retrieve all cards

# OpenAPI definition

````json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Gainfully API",
    "version": "1.0",
    "description": "# Specifications\nThe Gainfully API provides programmatic access to the data in our system. For example a `Relationships` endpoint to retrieve a list of members in your organization or `Events` endpoints to fetch shared content.\n## Authentication\nTo access Gainfully API, a API key is required in the HTTPS Authorization header.\n```shell\ncurl --location --request GET 'https://api.gainfully.com/v1.0/relationships/' \\\n--header 'Content-Type: application/json' \\\n--header 'Authorization: API_KEY'\n```\n## Retrieving resources\nThe Gainfully API offers predictable and resource-oriented URLs. A single resource is accessed by a unique identifier of an object `GET /example-resource/:id` while a list of resources is fetched by resource type `GET /example-resource/`.\n### Ordering\nSorting is possible when retrieving resources by using the `ordering` query parameter.\nValid attributes for sorting can be found in the query parameters section of the api. To reverse the sorting order, the attribute name must be preceded by ``-``\n- Example: `GET /v1.0/content?ordering=name` (Resource objects are sorted by name in alphabetical order)\n- Example: `GET /v1.0/content?ordering=-name` (Resource objects are sorted by name in reverse alphabetical order)\n\n### Pagination\nWhen retrieving multiple resource objects, the result is always paginated.\nThe Gainfully API uses the limit and offset pagination model where the limit represents the number of objects retrieved per page, while the offset indicates the starting position of the query in relation to the complete set of unpaginated items.\nPaginated responses provide urls for the next and previous pages where available, as well as a total number of objects. ( See `Multiple resource response` for the response format )\n\nThe pagination parameters are:\n\n- `limit`: Number of objects to retrieve in the response. The default and the maximum is 100.\n- `offset`: Starting position of the query in relation to the complete set of unpaginated items.\n\n### Filtering\n\nResources support filtering by certain attributes ( documented for each resource ), which allow for easier fetching of desired resources, and filters are given in the URL as query parameters.\nFilter parameter names are formed by prefixing `filter__` to the field name\n- Example: `GET /v1.0/relationships?filter__type=4`\nCertain filters allow for operators through the `__` symbol. For example, timestamps can allow for relational operators.\n- Example: `GET /v1.0/content?filter__created_at__gte=1572274684`\n\n| Operator  | Description           |\n|-----------|-----------------------|\n| gt        | greater than         |\n| gte       | greater than or equal to |\n| lt        | less than           |\n| lte       | less than or equal to |\n\n\n### Sparse fieldsets\n\nWhen retrieving resource objects, it is possible to request only specific fields by using the `fields` parameter. This parameter takes a value of comma separated field names. Nested attributes can be specified using the dot `.`, for example, `sender.id`.\n- Example: `GET /v1.0/content?fields=name,message`\n\n## Document Structure\n\n### Single resource response\nRetrieving a resource by a specific `id` will yield a single resource object.\nThe top level document contains all attributes of the resource object. This includes the `id` attribute that uniquely identifies the object, unless stated otherwise.\n\n### Multiple resource response\nRetrieving multiple resources yields a paginated list of resource objects.\nThe top level of the document contains the following attributes:\n- `count`: Total number of resources\n- `next`: URL for the next page of resources ( if available )\n- `previous`: URL for the previous page of resources ( if available )\n- `results`: List of resource objects. The resource objects inside the list follow the same structure from the `Single resource response` section.\n\n## Error response\nErrors have a specific document structure which are accompanied by an appropriate HTTP code to allow for easier error handling.\nResources have their specific error codes documented inside their documentation pages.\nAn error response contains the following attributes:\n- `field`: Attribute name inside the body of a request which caused the error\n- `error_code`: String based code for the error\n- `detail`: Description of the error\n\nExample\n\n    {\n        \"field\": \"name\",\n        \"error_code\": \"required\",\n        \"detail\": \"This field is required.\"\n    }\n\n\n## Rate limiting\nThe rate limiting of the API is done on a per-token basis. When the rate limit is reached, the following response is returned:\n\n    Status: 429 Too Many Requests\n    {\n        \"field\": null,\n        \"error_code\": \"throttled\",\n        \"detail\": \"Request was throttled. Expected available in x seconds.\"\n    }\n",
    "termsOfService": "https://www.gainfully.com/terms",
    "contact": {
      "url": "https://www.gainfully.com"
    }
  },
  "servers": [
    {
      "url": "https://api.gainfully.com/v1.0"
    }
  ],
  "paths": {
    "/cards/": {
      "get": {
        "tags": [
          "Cards"
        ],
        "parameters": [
          {
            "name": "filter__created_at__gt",
            "description": "Filter cards created after the Unix timestamp",
            "schema": {
              "type": "integer"
            },
            "in": "query",
            "required": false
          },
          {
            "name": "filter__created_at__lt",
            "description": "Filter cards created before the Unix timestamp",
            "schema": {
              "type": "integer"
            },
            "in": "query",
            "required": false
          },
          {
            "name": "filter__updated_at__gt",
            "description": "Filter cards updated after the Unix timestamp",
            "schema": {
              "type": "integer"
            },
            "in": "query",
            "required": false
          },
          {
            "name": "filter__updated_at__lt",
            "description": "Filter cards updated before the Unix timestamp",
            "schema": {
              "type": "integer"
            },
            "in": "query",
            "required": false
          },
          {
            "name": "fields",
            "description": "Specify which fields to retrieve.",
            "schema": {
              "type": "string"
            },
            "in": "query",
            "required": false
          },
          {
            "name": "offset",
            "description": "Starting position of the query in relation to the complete set of unpaginated items.",
            "schema": {
              "type": "number"
            },
            "in": "query"
          },
          {
            "name": "limit",
            "description": " Number of objects to retrieve in the response. By default, the value is the maximum, which is 100.",
            "schema": {
              "type": "integer"
            },
            "in": "query"
          },
          {
            "examples": {
              "reverse name": {
                "value": "-name"
              },
              "name and id": {
                "value": "name,id"
              }
            },
            "name": "ordering",
            "description": "Sort the results against the specified fields. By default, the results are sorted by ``id``. To sort the results in the reverse order of a field, the field name must be preceded with the ``-`` sign. To sort the results by multiple fields, the field names must be separated by commas.",
            "schema": {
              "enum": [
                "id",
                "name",
                "updated_at",
                "created_at",
                "media_type"
              ],
              "type": "string"
            },
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListResponseCard"
                },
                "examples": {
                  "Retrieve cards": {
                    "value": {
                      "count": 27,
                      "next": "https://api.gainfully.com/v1.0/cards/?limit=8&offset=8",
                      "previous": null,
                      "results": [
                        {
                          "id": 185,
                          "name": "Is AngularJS ready for the enterprise?",
                          "content": "http://www.infoworld.com/article/2890272/javascript/is-angularjs-ready-for-the-enterprise.html",
                          "description": "AngularJS has a habit of stranding its users in backward incompatibilities, but its Google pedigree and wild popularity may well give it staying power",
                          "created_at": 1426255057,
                          "updated_at": 1426255057,
                          "thumbnail": "https://i.embed.ly/1/image?url=http%3A%2F%2Fimages.techhive.com%2Fimages%2Farticle%2F2014%2F10%2Fworking-promotion-job-100522319-primary.idge.jpg&key=d5267ddcb7a542569f5656b153f9601b",
                          "media_type": "link"
                        },
                        {
                          "id": 186,
                          "name": "Uber struck down in Germany, but it's not as bad as it sounds - CNET",
                          "content": "http://www.cnet.com/news/uber-struck-down-in-germany-but-its-not-as-bad-as-it-sounds/",
                          "description": "A German court provided a preliminary ruling that could ban UberPop, but it didn't prevent the company's other services from operating in the country. Car-hailing service Uber is in more legal hot water, which could see one -- but not all -- of its services banned in Germany in the coming weeks.",
                          "created_at": 1426768365,
                          "updated_at": 1426768365,
                          "thumbnail": "https://i.embed.ly/1/image?url=http%3A%2F%2Fcnet2.cbsistatic.com%2Fhub%2Fi%2Fr%2F2014%2F04%2F18%2F79002b7a-6c2a-4126-a6d8-eac58de28d01%2Fthumbnail%2F670x503%2F5e056bb38a4f92dd8874990be6ba84c7%2Fscreen-shot-2014-04-17-at-9-14-44-pm.png&key=d5267ddcb7a542569f5656b153f9601b",
                          "media_type": "link"
                        },
                        {
                          "id": 305,
                          "name": "The ABC's of Google's Alphabet announcement - CNET",
                          "content": "http://www.cnet.com/news/the-abcs-of-googles-alphabet-announcement/",
                          "description": "When Ruth Porat, Google's chief financial officer, addressed analysts on a conference call for the first time in July, she preached one thing: balance. \"A key focus is on the levers within our control to manage the pace of expenses while still ensuring and supporting our growth,\" she said at the time.",
                          "created_at": 1439371088,
                          "updated_at": 1439371088,
                          "thumbnail": "https://i.embed.ly/1/image?url=http%3A%2F%2Fcnet1.cbsistatic.com%2Fhub%2Fi%2Fr%2F2015%2F08%2F11%2Fe0ebb7b7-15a0-4e51-8349-17ae498142ce%2Fthumbnail%2F670x503%2F9af4e63ad59efea7463e5fa240506a6e%2Fgettyimages-467484808.jpg&key=d5267ddcb7a542569f5656b153f9601b",
                          "media_type": "link"
                        },
                        {
                          "id": 306,
                          "name": "Bezos says Amazon's drones will be as common as mail trucks - CNET",
                          "content": "http://www.cnet.com/news/bezos-says-amazons-drones-will-be-as-common-as-mail-trucks/",
                          "description": "Technically Incorrect offers a slightly twisted take on the tech that's taken over our lives. I wonder what proportion of the world is already looking forward to having their talcum powder and garden tools delivered by drone.",
                          "created_at": 1439793788,
                          "updated_at": 1439793788,
                          "thumbnail": "https://i.embed.ly/1/image?url=http%3A%2F%2Fcnet4.cbsistatic.com%2Fhub%2Fi%2Fr%2F2014%2F06%2F30%2F367d9565-aca6-46e2-957a-165ade2daac6%2Fthumbnail%2F670x503%2F2dc0c5587a352db0f0ece20b4cd22e71%2Fjeff-bezos-amazon-8208.jpg&key=d5267ddcb7a542569f5656b153f9601b",
                          "media_type": "link"
                        },
                        {
                          "id": 307,
                          "name": "Apple's self-driving car plans may have just been outed - CNET",
                          "content": "http://www.cnet.com/news/apples-self-driving-car-plans-may-have-just-been-outed/",
                          "description": "Apple's supposed self-driving electric car efforts may be real -- and far enough along for testing, according to a new report from the Guardian. The publication, citing documents it obtained under a public records act request, said Apple has met with officials from the GoMentum Station, a large former Navy weapons station near San Francisco that is being changed into a high-security testing area for self-driving cars.",
                          "created_at": 1439799698,
                          "updated_at": 1439799698,
                          "thumbnail": "https://i.embed.ly/1/image?url=http%3A%2F%2Fcnet3.cbsistatic.com%2Fhub%2Fi%2Fr%2F2015%2F06%2F03%2Fc9579d4d-9fca-4bba-97de-9464b75ddef3%2Fthumbnail%2F670x503%2F83699bdab96fc67b8526dc1b3fc8b6b1%2Fwwdc-2015-apple-moscone-west-6409.jpg&key=d5267ddcb7a542569f5656b153f9601b",
                          "media_type": "link"
                        },
                        {
                          "id": 308,
                          "name": "Galactic collision leaves behind a stellar mess - CNET",
                          "content": "http://www.cnet.com/news/galactic-collision-leaves-behind-a-stellar-mess/",
                          "description": "Space is mostly, well, space, but that doesn't mean objects don't run into other objects. Some of the biggest collisions occur when galaxies run into other galaxies. These events aren't uncommon, and we've seen enough of them to learn what the effects of galactic collision are.",
                          "created_at": 1439801105,
                          "updated_at": 1439801105,
                          "thumbnail": "https://i.embed.ly/1/image?url=http%3A%2F%2Fcnet1.cbsistatic.com%2Fhub%2Fi%2Fr%2F2015%2F08%2F17%2F07587198-3c9a-4b7b-8432-e980ec630ac4%2Fthumbnail%2F670x503%2F0222306a39ae088e99c397dc05758107%2F428.jpg&key=d5267ddcb7a542569f5656b153f9601b",
                          "media_type": "link"
                        },
                        {
                          "id": 310,
                          "name": "India's Mars orbiter sends stunning canyon photo - CNET",
                          "content": "http://www.cnet.com/news/indias-mars-orbiter-sends-stunning-canyon-photo/",
                          "description": "Just in time for India's Independence Day, the country's very first interplanetary mission, the Mars Orbiter Mission, has sent back some beautiful images of the Red Planet's surface. The Indian Space Research Organisation mission, also known as Mangalyaan, which means \"Mars-craft\" in Sanskrit, was launched in early November 2013 on a shoestring budget compared to other space missions.",
                          "created_at": 1439801572,
                          "updated_at": 1439801572,
                          "thumbnail": "https://i.embed.ly/1/image?url=http%3A%2F%2Fcnet1.cbsistatic.com%2Fhub%2Fi%2Fr%2F2015%2F08%2F17%2Fedec342a-294c-4a3f-b380-226ebd045536%2Fthumbnail%2F670x503%2F64a8771398171f31c0dc6bef8254101e%2Fmcc01.jpg&key=d5267ddcb7a542569f5656b153f9601b",
                          "media_type": "link"
                        },
                        {
                          "id": 311,
                          "name": "Cards, Shares, and Links: Insights from Analyzing 1 Million Articles",
                          "content": "https://moz.com/blog/content-shares-and-links-insights-from-analyzing-1-million-articles",
                          "description": "this summer BuzzSumo teamed up with Moz to analyze the shares and links of over 1m articles. We wanted to look at the correlation of shares and links, to understand the content that gets both shares and links, and to identify the formats that get relatively more shares or links.",
                          "created_at": 1441892834,
                          "updated_at": 1441893461,
                          "thumbnail": "https://i.embed.ly/1/image?url=http%3A%2F%2Fd1avok0lzls2w.cloudfront.net%2Fuploads%2Fog_image%2F55ea06bc87d715.82737753.png&key=d5267ddcb7a542569f5656b153f9601b",
                          "media_type": "link"
                        }
                      ]
                    }
                  }
                }
              }
            },
            "description": "OK"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "operationId": "Retrieve all cards",
        "summary": "Retrieve all cards",
        "description": ""
      }
    }
  },
  "components": {
    "schemas": {
      "ListResponse": {
        "description": "Response format for list requests",
        "required": [
          "count",
          "results",
          "next",
          "previous"
        ],
        "type": "object",
        "properties": {
          "next": {
            "nullable": true,
            "description": "Automatically generated url for the next page of results",
            "type": "string"
          },
          "count": {
            "format": "int32",
            "description": "Total number of unpaginated results for the request",
            "type": "integer"
          },
          "previous": {
            "nullable": true,
            "description": "Automatically generated url for the previous page of results",
            "type": "string"
          },
          "results": {
            "description": "Paginated list of requested objects",
            "type": "array",
            "items": {}
          }
        },
        "example": {
          "count": 1,
          "next": null,
          "previous": null,
          "results": []
        }
      },
      "ListResponseCard": {
        "description": "",
        "type": "object",
        "allOf": [
          {
            "required": [
              "results"
            ],
            "type": "object",
            "properties": {
              "results": {
                "description": "",
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Card"
                }
              }
            }
          },
          {
            "$ref": "#/components/schemas/ListResponse"
          }
        ]
      },
      "Card": {
        "required": [
          "content",
          "created_at",
          "description",
          "id",
          "media_type",
          "name",
          "updated_at"
        ],
        "type": "object",
        "properties": {
          "id": {
            "format": "int32",
            "description": "Unique id of the card",
            "type": "integer"
          },
          "name": {
            "nullable": true,
            "description": "Card title",
            "type": "string"
          },
          "content": {
            "description": "Card content",
            "type": "string"
          },
          "created_at": {
            "format": "int32",
            "description": "Timestamp when the card was created",
            "type": "integer"
          },
          "updated_at": {
            "format": "int32",
            "description": "Timestamp when the card was last updated",
            "type": "integer"
          },
          "thumbnail": {
            "nullable": true,
            "description": "URL for the thumbnail image of the card",
            "type": "string"
          },
          "media_type": {
            "nullable": true,
            "description": "Type of content",
            "type": "string"
          },
          "description": {
            "description": "Text description of the card content",
            "type": "string"
          }
        },
        "example": {
          "id": 2,
          "name": "Machine learning in financial services",
          "description": "The financial services industry is using machine learning to revolutionize its processes and rapidly improve financial outcomes, and its potential seems limitless.",
          "created_at": 1582196447,
          "updated_at": 1582196447,
          "media_type": "html"
        }
      }
    },
    "securitySchemes": {
      "ApiKey": {
        "type": "apiKey",
        "name": "Authorization",
        "in": "header"
      }
    }
  },
  "tags": [
    {
      "name": "Cards"
    }
  ],
  "x-tagGroups": [
    {
      "name": "Resources",
      "tags": [
        "Relationships",
        "Cards",
        "Events",
        "Campaigns",
        "Templates"
      ]
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
````