---
updatedAt: 2026-09-25T18:34:03.000Z
agentTools:
  projectIndex: https://docs.centaurlabs.com/llms.txt
---

# Get Import Policy

Get the required policy for the Centaur Importer to access the source data

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Ingest API",
    "description": "Public API for importing data and managing labeling tasks, cases, projects, and assets.",
    "version": "0.1.0"
  },
  "servers": [
    {
      "url": "https://api.centaurlabs.com"
    }
  ],
  "paths": {
    "/imports/public/v1/policy/get": {
      "get": {
        "tags": [
          "Import and Manage Data"
        ],
        "summary": "Get Import Policy",
        "description": "Get the required policy for the Centaur Importer to access the source data",
        "operationId": "get_import_policy_imports_public_v1_policy_get_get",
        "security": [
          {
            "APIKeyHeader": []
          },
          {
            "BearerToken": []
          }
        ],
        "parameters": [
          {
            "name": "uri",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Uri"
            }
          },
          {
            "name": "source_type",
            "in": "query",
            "required": true,
            "schema": {
              "enum": [
                "s3",
                "gcs"
              ],
              "type": "string",
              "title": "Source Type"
            }
          },
          {
            "name": "policy_format",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/PolicyFormat",
              "default": "json"
            }
          },
          {
            "name": "project_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "exclusiveMinimum": 0
                },
                {
                  "type": "null"
                }
              ],
              "title": "Project Id"
            }
          },
          {
            "name": "organization_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "exclusiveMinimum": 0
                },
                {
                  "type": "null"
                }
              ],
              "title": "Organization Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RootModel_Union_S3JsonPolicy__GCSJsonPolicy__UiLinkPolicy__CliCommandPolicy__CombinedPolicy__"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "CliCommandPolicy": {
        "properties": {
          "command": {
            "type": "string",
            "title": "Command"
          }
        },
        "type": "object",
        "required": [
          "command"
        ],
        "title": "CliCommandPolicy"
      },
      "CombinedPolicy": {
        "properties": {
          "account": {
            "type": "string",
            "title": "Account"
          },
          "link": {
            "type": "string",
            "maxLength": 2083,
            "minLength": 1,
            "format": "uri",
            "title": "Link"
          },
          "command": {
            "type": "string",
            "title": "Command"
          },
          "json": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/S3JsonPolicy"
              },
              {
                "$ref": "#/components/schemas/GCSJsonPolicy"
              }
            ],
            "title": "Json"
          }
        },
        "type": "object",
        "required": [
          "account",
          "link",
          "command",
          "json"
        ],
        "title": "CombinedPolicy"
      },
      "GCSBinding": {
        "properties": {
          "role": {
            "type": "string",
            "title": "Role"
          },
          "members": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Members"
          },
          "condition": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/GCSCondition"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "role",
          "members"
        ],
        "title": "GCSBinding"
      },
      "GCSCondition": {
        "properties": {
          "title": {
            "type": "string",
            "title": "Title"
          },
          "description": {
            "type": "string",
            "title": "Description"
          },
          "expression": {
            "type": "string",
            "title": "Expression"
          }
        },
        "type": "object",
        "required": [
          "title",
          "description",
          "expression"
        ],
        "title": "GCSCondition"
      },
      "GCSJsonPolicy": {
        "properties": {
          "bindings": {
            "items": {
              "$ref": "#/components/schemas/GCSBinding"
            },
            "type": "array",
            "title": "Bindings"
          }
        },
        "type": "object",
        "required": [
          "bindings"
        ],
        "title": "GCSJsonPolicy",
        "example": {
          "bindings": [
            {
              "condition": {
                "description": "Allows read-only access only to objects under foo",
                "expression": "resource.name.startsWith('projects/buckets/foo')",
                "title": "Access limited to specific path"
              },
              "members": [
                "serviceAccount:example-service-account@project.iam.gserviceaccount.com"
              ],
              "role": "roles/storage.objectViewer"
            }
          ]
        }
      },
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "PolicyFormat": {
        "type": "string",
        "enum": [
          "json",
          "cli",
          "ui",
          "all"
        ],
        "title": "PolicyFormat"
      },
      "RootModel_Union_S3JsonPolicy__GCSJsonPolicy__UiLinkPolicy__CliCommandPolicy__CombinedPolicy__": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/S3JsonPolicy"
          },
          {
            "$ref": "#/components/schemas/GCSJsonPolicy"
          },
          {
            "$ref": "#/components/schemas/UiLinkPolicy"
          },
          {
            "$ref": "#/components/schemas/CliCommandPolicy"
          },
          {
            "$ref": "#/components/schemas/CombinedPolicy"
          }
        ],
        "title": "RootModel[Union[S3JsonPolicy, GCSJsonPolicy, UiLinkPolicy, CliCommandPolicy, CombinedPolicy]]"
      },
      "S3JsonPolicy": {
        "properties": {
          "Version": {
            "type": "string",
            "title": "Version"
          },
          "Statement": {
            "items": {
              "$ref": "#/components/schemas/S3StatementItem"
            },
            "type": "array",
            "title": "Statement"
          }
        },
        "type": "object",
        "required": [
          "Version",
          "Statement"
        ],
        "title": "S3JsonPolicy",
        "example": {
          "Statement": [
            {
              "Action": [
                "s3:ListBucket",
                "s3:GetObject",
                "s3:GetObjectTagging"
              ],
              "Effect": "Allow",
              "Principal": {
                "AWS": "arn:aws:iam::111122223333:role/example-role"
              },
              "Resource": "arn:aws:s3:::example-bucket/*"
            }
          ],
          "Version": "2012-10-17"
        }
      },
      "S3StatementItem": {
        "properties": {
          "Effect": {
            "type": "string",
            "title": "Effect"
          },
          "Principal": {
            "additionalProperties": true,
            "type": "object",
            "title": "Principal"
          },
          "Action": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "string"
              }
            ],
            "title": "Action"
          },
          "Resource": {
            "type": "string",
            "title": "Resource"
          },
          "Condition": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Condition"
          }
        },
        "type": "object",
        "required": [
          "Effect",
          "Principal",
          "Action",
          "Resource"
        ],
        "title": "S3StatementItem"
      },
      "UiLinkPolicy": {
        "properties": {
          "account": {
            "type": "string",
            "title": "Account"
          },
          "link": {
            "type": "string",
            "maxLength": 2083,
            "minLength": 1,
            "format": "uri",
            "title": "Link"
          }
        },
        "type": "object",
        "required": [
          "account",
          "link"
        ],
        "title": "UiLinkPolicy"
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          },
          "input": {
            "title": "Input"
          },
          "ctx": {
            "type": "object",
            "title": "Context"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      }
    },
    "securitySchemes": {
      "APIKeyHeader": {
        "type": "apiKey",
        "description": "Your Centaur API key",
        "in": "header",
        "name": "X-API-KEY"
      },
      "BearerToken": {
        "type": "http",
        "description": "Bearer token obtained from authentication endpoint",
        "scheme": "bearer"
      }
    }
  },
  "tags": [
    {
      "name": "Import and Manage Data",
      "description": "Import assets from cloud storage or URLs, and manage the resulting assets and file manifests."
    }
  ],
  "x-readme": {
    "apply-tag-changes": true
  }
}
```