---
agentTools:
  projectIndex: https://developers.9spokes.io/llms.txt
---

# Get Connection Data Status

Getting data status of a connection for a given company is done by issuing a `GET` request and specifying both the `connection` and `company` in the path.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "9Spokes Open API",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.9spokes.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/companies/{company}/connections/{connection}/status": {
      "get": {
        "summary": "Get Connection Data Status",
        "description": "",
        "operationId": "get-connection-data-status",
        "parameters": [
          {
            "name": "company",
            "in": "path",
            "description": "The ID of the company",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "connection",
            "in": "path",
            "description": "The ID of the connection to remove",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"status\": \"ok\",\n    \"correlationId\": \"e9138503-c8a3-412e-8f68-403adc547b1e\",\n    \"details\": [\n        {\n            \"datasource\": \"products\",\n            \"total\": 1,\n            \"completed\": 1,\n            \"last_updated\": \"2021-09-16T23:41:36.814Z\"\n        },\n        {\n            \"datasource\": \"bank_accounts\",\n            \"total\": 1,\n            \"completed\": 1,\n            \"last_updated\": \"2021-09-22T12:00:45.327Z\"\n        },\n        {\n            \"datasource\": \"invoices\",\n            \"total\": 395,\n            \"completed\": 395,\n            \"last_updated\": \"2021-09-23T04:00:41.429Z\"\n        },\n        {\n            \"datasource\": \"bills\",\n            \"total\": 395,\n            \"completed\": 395,\n            \"last_updated\": \"2021-09-23T04:00:41.403Z\"\n        },\n        {\n            \"datasource\": \"trial_balance\",\n            \"total\": 96,\n            \"completed\": 96,\n            \"last_updated\": \"2021-09-22T13:45:45.575Z\"\n        },\n        {\n            \"datasource\": \"business\",\n            \"total\": 1,\n            \"completed\": 1,\n            \"last_updated\": \"2021-09-16T23:41:35.973Z\"\n        }\n    ]\n} "
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "ok"
                    },
                    "correlationId": {
                      "type": "string",
                      "example": "e9138503-c8a3-412e-8f68-403adc547b1e"
                    },
                    "details": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "datasource": {
                            "type": "string",
                            "example": "products"
                          },
                          "total": {
                            "type": "integer",
                            "example": 1,
                            "default": 0
                          },
                          "completed": {
                            "type": "integer",
                            "example": 1,
                            "default": 0
                          },
                          "last_updated": {
                            "type": "string",
                            "example": "2021-09-16T23:41:36.814Z"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "6212eca2c5390f001b300d73:62be6e2d6eb0c1002ec13a85"
}
```