---
updatedAt: 2026-07-13T07:05:39.000Z
agentTools:
  projectIndex: https://docs.getsmileapi.com/llms.txt
---

# List links

List links from data sources.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Smile API",
    "version": "1.14.0",
    "description": "The Smile API provides employment and income data from a single API. ",
    "contact": {
      "name": "Smile Technology Pte Ltd",
      "url": "https://www.getsmileapi.com",
      "email": "info@getsmileapi.com"
    },
    "termsOfService": "https://www.getsmileapi.com/terms-and-conditions"
  },
  "servers": [
    {
      "url": "https://sandbox.smileapi.io/v1",
      "description": "Sandbox"
    },
    {
      "url": "https://open.smileapi.io/v1",
      "description": "Production"
    }
  ],
  "paths": {
    "/links": {
      "parameters": [],
      "get": {
        "operationId": "list-links",
        "description": "List links from data sources.",
        "summary": "List links",
        "tags": [
          "Links"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/size"
          },
          {
            "$ref": "#/components/parameters/cursor"
          },
          {
            "$ref": "#/components/parameters/userId"
          },
          {
            "$ref": "#/components/parameters/sourceId"
          }
        ],
        "responses": {
          "200": {
            "description": "List Links Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LinkListResponse"
                },
                "examples": {
                  "Example": {
                    "value": {
                      "code": "OK",
                      "message": "Success",
                      "requestId": "5b79399a-6852-4234-bb0e-ad472648282d",
                      "data": {
                        "nextCursor": "1259723474",
                        "items": [
                          {
                            "id": "link-123abc456def789abc123def456abc78",
                            "startDate": "2023-01-05T10:30:11Z",
                            "endDate": "2023-07-05T10:30:11Z",
                            "records": [
                              {
                                "count": 2,
                                "linkedAt": [
                                  "2023-04-05T10:30:11Z",
                                  "2023-07-01T10:30:11Z"
                                ]
                              }
                            ],
                            "metadata": {
                              "createdAt": "2021-04-14T09:30:24Z",
                              "sourceId": "a-123abc456def789abc123def456abc78",
                              "sourceType": "ACCOUNT",
                              "userId": "tenantId-123abc456def789abc123def456abc78",
                              "providerId": "abccorp"
                            }
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ObjectMetadataRefCode": {
        "type": "string",
        "title": "ObjectMetadataRefCode",
        "description": "Request status code",
        "enum": [
          "OK",
          "CREATED",
          "INVALID_CREDENTIALS",
          "INVALID_PARAMETERS",
          "INVALID_TOKEN",
          "UNAUTHORIZED_ACCESS",
          "MISSING_RESOURCE",
          "REQUEST_LIMIT_EXCEEDED",
          "SERVER_ERROR",
          "UNSUPPORTED_METHOD",
          "SERVER_UNAVAILABLE",
          "TIME_LIMIT_EXCEEDED"
        ],
        "example": "OK",
        "x-internal": false
      },
      "ObjectMetadataRefMessage": {
        "type": "string",
        "title": "ObjectMetadataRefMessage",
        "description": "Message response to the request",
        "example": "Success",
        "x-internal": false
      },
      "ObjectMetadataRefRequestID": {
        "type": "string",
        "title": "ObjectMetadataRefRequestID",
        "description": "Unique ID that is added to the body of every response for easy traceability of the request in our logs.",
        "x-internal": false,
        "example": "5b79399a-6852-4234-bb0e-ad472648282d"
      },
      "ObjectNextCursor": {
        "title": "ObjectNextCursor",
        "type": "string",
        "example": "1259723474",
        "description": "The next cursor value that can be used in the following query.",
        "x-internal": false
      },
      "RefDateTime": {
        "type": "string",
        "title": "Date and Time string",
        "format": "date-time",
        "example": "2021-04-14T09:30:24Z",
        "description": "Date and time"
      },
      "LinkPayload": {
        "type": "object",
        "required": [
          "id",
          "endDate"
        ],
        "properties": {
          "id": {
            "type": "string",
            "example": "link-123456789012345678901234567890",
            "description": "Link request ID"
          },
          "startDate": {
            "$ref": "#/components/schemas/RefDateTime"
          },
          "endDate": {
            "$ref": "#/components/schemas/RefDateTime"
          },
          "records": {
            "type": "array",
            "description": "Link records",
            "default": [],
            "items": {
              "type": "object",
              "title": "LinkRecord",
              "required": [
                "count"
              ],
              "properties": {
                "count": {
                  "type": "integer",
                  "description": "The number of times the user has linked at least one account with other participating organizations"
                },
                "linkedAt": {
                  "type": "array",
                  "default": [],
                  "description": "The latest link time of each application",
                  "items": {
                    "$ref": "#/components/schemas/RefDateTime"
                  }
                }
              }
            }
          }
        }
      },
      "CommonResponse": {
        "title": "CommonResponse",
        "type": "object",
        "required": [
          "code",
          "requestId"
        ],
        "properties": {
          "code": {
            "$ref": "#/components/schemas/ObjectMetadataRefCode"
          },
          "message": {
            "$ref": "#/components/schemas/ObjectMetadataRefMessage"
          },
          "requestId": {
            "$ref": "#/components/schemas/ObjectMetadataRefRequestID"
          }
        },
        "description": ""
      },
      "RefSourceType": {
        "type": "string",
        "nullable": true,
        "title": "Ref-Source-Type",
        "example": "Account",
        "enum": [
          "ACCOUNT",
          "UPLOAD",
          "ARCHIVE",
          "SOCIAL_SECURITY"
        ],
        "description": "Source Type"
      },
      "ObjectReferenceMetadata": {
        "title": "Reference Metadata",
        "type": "object",
        "description": "Metadata related to account-specific data",
        "properties": {
          "itemCreatedAt": {
            "$ref": "#/components/schemas/RefDateTime"
          },
          "createdAt": {
            "$ref": "#/components/schemas/RefDateTime"
          },
          "accountId": {
            "type": "string",
            "deprecated": true,
            "description": "The accountId of this object"
          },
          "sourceId": {
            "type": "string",
            "description": "The ACCOUNT or ARCHIVE ID associated with this object"
          },
          "sourceType": {
            "$ref": "#/components/schemas/RefSourceType"
          },
          "userId": {
            "type": "string",
            "description": "The user ID associated with this object"
          },
          "providerId": {
            "type": "string",
            "description": "The provider ID associated with this object"
          }
        },
        "required": [
          "createdAt",
          "itemCreatedAt",
          "sourceId",
          "sourceType",
          "userId",
          "providerId"
        ]
      },
      "Link": {
        "type": "object",
        "required": [
          "id",
          "endDate",
          "metadata"
        ],
        "allOf": [
          {
            "$ref": "#/components/schemas/LinkPayload"
          },
          {
            "properties": {
              "metadata": {
                "$ref": "#/components/schemas/ObjectReferenceMetadata"
              }
            }
          }
        ]
      },
      "LinkListData": {
        "type": "object",
        "properties": {
          "nextCursor": {
            "$ref": "#/components/schemas/ObjectNextCursor"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Link"
            }
          }
        }
      },
      "LinkListResponse": {
        "type": "object",
        "allOf": [
          {
            "$ref": "#/components/schemas/CommonResponse"
          },
          {
            "properties": {
              "data": {
                "$ref": "#/components/schemas/LinkListData"
              }
            }
          }
        ]
      }
    },
    "securitySchemes": {
      "basicAuth": {
        "type": "http",
        "scheme": "basic"
      }
    },
    "parameters": {
      "cursor": {
        "name": "cursor",
        "in": "query",
        "required": false,
        "schema": {
          "type": "string"
        },
        "description": "Uses the filter values of the previous page to determine the next set of items."
      },
      "size": {
        "name": "size",
        "in": "query",
        "schema": {
          "type": "integer",
          "example": 50,
          "minimum": 1,
          "maximum": 150,
          "default": 10
        },
        "description": "The number of objects you want returned in a collection."
      },
      "userId": {
        "name": "userId",
        "in": "query",
        "required": false,
        "schema": {
          "type": "string"
        },
        "description": "Filter to those associated with a particular user ID."
      },
      "sourceId": {
        "name": "sourceId",
        "in": "query",
        "required": false,
        "schema": {
          "type": "string"
        },
        "description": "Filter to those associated with a particular source ID. If we query the link account data, the sourceId is the accountId, If we query the archive data, then the sourceId is the archiveId"
      }
    }
  },
  "security": [
    {
      "basicAuth": []
    }
  ]
}
```