> ## Documentation Index
> Fetch the complete documentation index at: https://docs.supermetrics.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get transfer run details

> Retrieve detailed information about a specific transfer run, including status,
timestamps, duration, row counts, and per-query execution details.

**Returns:** The transfer run object with its ID, status, timing information, and query details.

**Important Notes:**
- Requires scope `dwh_transfers_read`
- Your account must have `dwh.transfer.view` permission. See [roles and permissions](https://docs.supermetrics.com/docs/about-supermetrics-teams-and-user-roles#user-roles).
- The transfer run must exist and belong to your team
- Returns 404 if the transfer run does not exist or does not belong to your team


## OpenAPI

````json GET /teams/{team_id}/transfer_runs/{transfer_run_id}
{
  "openapi": "3.0.3",
  "info": {
    "title": "Management API Reference",
    "version": "2.0.0",
    "description": "API Documentation for the Supermetrics Management API. For more information, visit https://supermetrics.com.",
    "termsOfService": "https://supermetrics.com/terms-of-service",
    "contact": {
      "name": "Supermetrics Suppot",
      "email": "support@supermetrics.com",
      "url": "https://supermetrics.com/support"
    },
    "license": {
      "name": "Apache 2.0",
      "url": "https://www.apache.org/licenses/LICENSE-2.0.html"
    },
    "x-api-id": "sm-management-api",
    "x-audience": "public"
  },
  "servers": [
    {
      "url": "https://api.supermetrics.com/v2",
      "description": "Global production public Supermetrics Management API base path.",
      "x-internal": "false"
    }
  ],
  "tags": [
    {
      "name": "API Keys",
      "description": "Manage API keys to access Supermetrics API"
    },
    {
      "name": "Data Source Logins",
      "description": "Access your data source authentications"
    },
    {
      "name": "Data Source Login Links",
      "description": "Create single-use data source login links"
    },
    {
      "name": "Saved Queries",
      "description": "Manage queries saved in Query Manager"
    },
    {
      "name": "Table Groups",
      "description": "Manage your team's table groups"
    },
    {
      "name": "Team Lists",
      "description": "Manage centralized team lists for your queries"
    },
    {
      "name": "Team Settings",
      "description": "Configure general settings for your team"
    },
    {
      "name": "Data Transfers",
      "description": "Create, configure, and manage Data Warehouse transfers"
    },
    {
      "name": "Transfer Runs",
      "description": "Monitor execution history of Data Warehouse transfers"
    },
    {
      "name": "Data Backfills",
      "description": "Manage historical data backfills for your Data Warehouse transfers"
    },
    {
      "name": "Data Destinations",
      "description": "Create, configure, and manage Data Warehouse destinations"
    },
    {
      "name": "Data Source Connections",
      "description": "Create and manage data source connections for Data Warehouse transfers"
    },
    {
      "name": "Data Blending",
      "description": "Create and manage Data Blending"
    },
    {
      "name": "Custom Fields",
      "description": "Create and manage Custom Fields"
    }
  ],
  "externalDocs": {
    "description": "Find out more about Supermetrics Management API",
    "url": "https://docs.supermetrics.com/apidocs/management-api"
  },
  "paths": {
    "/teams/{team_id}/transfer_runs/{transfer_run_id}": {
      "servers": [
        {
          "url": "https://dts-api.supermetrics.com/v1",
          "description": "Transfer Runs API"
        }
      ],
      "get": {
        "summary": "Get transfer run details",
        "description": "Retrieve detailed information about a specific transfer run, including status,\ntimestamps, duration, row counts, and per-query execution details.\n\n**Returns:** The transfer run object with its ID, status, timing information, and query details.\n\n**Important Notes:**\n- Requires scope `dwh_transfers_read`\n- Your account must have `dwh.transfer.view` permission. See [roles and permissions](https://docs.supermetrics.com/docs/about-supermetrics-teams-and-user-roles#user-roles).\n- The transfer run must exist and belong to your team\n- Returns 404 if the transfer run does not exist or does not belong to your team\n",
        "operationId": "getTransferRun",
        "tags": [
          "Transfer Runs"
        ],
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/DwhTeamIdPathParam"
          },
          {
            "$ref": "#/components/parameters/DwhTransferRunIdPathParam"
          }
        ],
        "responses": {
          "200": {
            "description": "Transfer run retrieved successfully",
            "headers": {
              "Access-Control-Allow-Origin": {
                "$ref": "#/components/headers/Access-Control-Allow-Origin"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TransferRunDetailResponse"
                },
                "example": {
                  "meta": {
                    "request_id": "01892A4D-7586-7000-8000-000000000000"
                  },
                  "data": {
                    "id": "12345",
                    "status": "COMPLETED",
                    "started_time": "2024-01-15T10:00:00Z",
                    "ended_time": "2024-01-15T10:05:30Z",
                    "created_time": "2024-01-15T09:55:00Z",
                    "queued_time": "2024-01-15T09:58:00Z",
                    "query_details": [
                      {
                        "duration": "12.5",
                        "status": "COMPLETED",
                        "rows": "3000",
                        "error_description": null
                      },
                      {
                        "duration": "8.2",
                        "status": "COMPLETED",
                        "rows": "1500",
                        "error_description": null
                      }
                    ],
                    "external_id": "ext-12345",
                    "failed_query_amount": "0",
                    "total_duration": "330.5",
                    "total_rows": "4500",
                    "query_amount": "2",
                    "data_date": "2024-01-15",
                    "message": ""
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/DwhUnauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/DwhTransferRunNotFound"
          },
          "429": {
            "$ref": "#/components/responses/DwhTooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/DwhInternalServerError"
          }
        }
      }
    }
  },
  "components": {
    "parameters": {
      "DwhTeamIdPathParam": {
        "name": "team_id",
        "in": "path",
        "required": "true",
        "description": "Unique identifier of the team",
        "example": "12345",
        "schema": {
          "type": "integer",
          "format": "int64",
          "minimum": "1",
          "maximum": "9223372036854776000"
        }
      },
      "DwhTransferRunIdPathParam": {
        "name": "transfer_run_id",
        "in": "path",
        "required": "true",
        "description": "Unique identifier of the transfer run",
        "example": "12345",
        "schema": {
          "type": "integer",
          "format": "int64",
          "minimum": "1",
          "maximum": "9223372036854776000"
        }
      }
    },
    "headers": {
      "Access-Control-Allow-Origin": {
        "description": "CORS header",
        "schema": {
          "type": "string",
          "maxLength": "255",
          "enum": [
            "*"
          ],
          "example": "*"
        }
      }
    },
    "schemas": {
      "TransferRunDetailResponse": {
        "type": "object",
        "required": [
          "meta",
          "data"
        ],
        "properties": {
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          },
          "data": {
            "$ref": "#/components/schemas/TransferRunDetail"
          }
        }
      },
      "ResponseMeta": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string",
            "maxLength": "50",
            "pattern": "^[A-Za-z0-9_-]+$",
            "description": "API request ID"
          }
        }
      },
      "TransferRunDetail": {
        "type": "object",
        "required": [
          "id",
          "status",
          "external_id",
          "query_details",
          "message"
        ],
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64",
            "minimum": "1",
            "description": "Unique identifier of the transfer run",
            "example": "12345"
          },
          "status": {
            "type": "string",
            "description": "Current status of the transfer run",
            "example": "COMPLETED"
          },
          "started_time": {
            "type": "string",
            "format": "date-time",
            "nullable": "true",
            "description": "Timestamp when the transfer run started processing (ISO 8601 format)",
            "example": "2024-01-15T10:00:00Z"
          },
          "ended_time": {
            "type": "string",
            "format": "date-time",
            "nullable": "true",
            "description": "Timestamp when the transfer run finished processing (ISO 8601 format)",
            "example": "2024-01-15T10:05:30Z"
          },
          "created_time": {
            "type": "string",
            "format": "date-time",
            "nullable": "true",
            "description": "Timestamp when the transfer run was created (ISO 8601 format)",
            "example": "2024-01-15T09:55:00Z"
          },
          "queued_time": {
            "type": "string",
            "format": "date-time",
            "nullable": "true",
            "description": "Timestamp when the transfer run was queued for processing (ISO 8601 format)",
            "example": "2024-01-15T09:58:00Z"
          },
          "query_details": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QueryDetails"
            },
            "description": "Per-query execution details for the transfer run"
          },
          "external_id": {
            "type": "string",
            "description": "External identifier of the transfer run",
            "example": "ext-12345"
          },
          "failed_query_amount": {
            "type": "integer",
            "format": "int32",
            "minimum": "0",
            "nullable": "true",
            "description": "Number of queries that failed during the transfer run",
            "example": "0"
          },
          "total_duration": {
            "type": "number",
            "format": "float",
            "nullable": "true",
            "description": "Sum of all query durations in seconds",
            "example": "330.5"
          },
          "total_rows": {
            "type": "integer",
            "format": "int32",
            "minimum": "0",
            "nullable": "true",
            "description": "Total number of rows processed during the transfer run",
            "example": "15000"
          },
          "query_amount": {
            "type": "integer",
            "format": "int32",
            "minimum": "0",
            "nullable": "true",
            "description": "Total number of queries executed during the transfer run",
            "example": "5"
          },
          "data_date": {
            "type": "string",
            "format": "date",
            "nullable": "true",
            "description": "The data date this transfer run covers",
            "example": "2024-01-15"
          },
          "message": {
            "type": "string",
            "description": "Status message or error description for the transfer run",
            "example": ""
          }
        }
      },
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          },
          "error": {
            "$ref": "#/components/schemas/Error"
          }
        }
      },
      "QueryDetails": {
        "type": "object",
        "required": [
          "status",
          "rows"
        ],
        "properties": {
          "duration": {
            "type": "number",
            "format": "float",
            "nullable": "true",
            "description": "Duration of this query in seconds",
            "example": "12.5"
          },
          "status": {
            "type": "string",
            "description": "Status of this query execution",
            "example": "COMPLETED"
          },
          "rows": {
            "type": "integer",
            "format": "int32",
            "minimum": "0",
            "description": "Number of rows returned by this query",
            "example": "3000"
          },
          "error_description": {
            "type": "string",
            "nullable": "true",
            "description": "Error description if the query failed",
            "example": null
          }
        }
      },
      "Error": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "maxLength": "100",
            "description": "Error code"
          },
          "message": {
            "type": "string",
            "maxLength": "255",
            "description": "Error message"
          },
          "description": {
            "type": "string",
            "maxLength": "255",
            "description": "Error description"
          }
        }
      }
    },
    "responses": {
      "DwhUnauthorized": {
        "description": "Unauthorized - Authentication is required and has failed or has not been provided.",
        "headers": {
          "Access-Control-Allow-Origin": {
            "$ref": "#/components/headers/Access-Control-Allow-Origin"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            },
            "example": {
              "meta": {
                "request_id": "019461A0-0000-7000-8000-000000000000"
              },
              "error": {
                "code": "API_KEY_INVALID",
                "message": "Invalid API key",
                "description": "Provided API key was invalid."
              }
            }
          }
        }
      },
      "Forbidden": {
        "description": "Forbidden - The request is understood, but access is not allowed",
        "headers": {
          "Access-Control-Allow-Origin": {
            "$ref": "#/components/headers/Access-Control-Allow-Origin"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            },
            "example": {
              "meta": {
                "request_id": "01892A4D-7586-7000-8000-000000000000"
              },
              "error": {
                "code": "ACCESS_DENIED",
                "message": "Access Denied",
                "description": "You do not have permission to perform this operation."
              }
            }
          }
        }
      },
      "DwhTransferRunNotFound": {
        "description": "Transfer run not found",
        "headers": {
          "Access-Control-Allow-Origin": {
            "$ref": "#/components/headers/Access-Control-Allow-Origin"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            },
            "example": {
              "meta": {
                "request_id": "01892A4D-7586-7000-8000-000000000000"
              },
              "error": {
                "code": "NOT_FOUND",
                "message": "Not Found",
                "description": "The requested transfer run could not be found or you do not have access to it."
              }
            }
          }
        }
      },
      "DwhTooManyRequests": {
        "description": "Too Many Requests - Rate limit exceeded.",
        "headers": {
          "Retry-After": {
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": "1",
              "maximum": "3600"
            },
            "description": "Number of seconds to wait before making another request"
          },
          "Access-Control-Allow-Origin": {
            "$ref": "#/components/headers/Access-Control-Allow-Origin"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            },
            "example": {
              "meta": {
                "request_id": "019461A0-0000-7000-8000-000000000000"
              },
              "error": {
                "code": "API_ROW_QUOTA_EXCEEDED",
                "message": "Row quota exceeded",
                "description": "You have exceeded your row-quota limit of rows for this month. Please log into Supermetrics Hub at https://hub.supermetrics.com/ and upgrade your plan, or contact our Supermetrics support team."
              }
            }
          }
        }
      },
      "DwhInternalServerError": {
        "description": "Internal Server Error - An error occurred on the server.",
        "headers": {
          "Access-Control-Allow-Origin": {
            "$ref": "#/components/headers/Access-Control-Allow-Origin"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            },
            "example": {
              "meta": {
                "request_id": "01892A4D-7586-7000-8000-000000000000"
              },
              "error": {
                "code": "INTERNAL_SERVER_ERROR",
                "message": "Internal Server Error",
                "description": "An unexpected error occurred. Please try again later or contact support."
              }
            }
          }
        }
      }
    },
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "Bearer token authentication. Include the token in the Authorization header:\n`Authorization: Bearer <your-token>`\n"
      }
    }
  }
}
````

