---
title: "Create a knowledge graph from a .zip archive"
method: POST
path: "/api/v0/knowledge-graphs/archive"
tags: ["Knowledge Graphs"]
---

# Create a knowledge graph from a .zip archive

`POST /api/v0/knowledge-graphs/archive`

Creates a brand-new knowledge graph owned by the caller from a .zip produced by GET /{kg_id}/archive. All ids are reminted, so uploading the same archive repeatedly produces independent graphs. Fails with 400 if the archive references a package not available in this deployment.

## Response `201`

Successful Response

- OpCoreApiEndpointsKnowledgeGraphsArchiveImportArchiveResponse
  - `knowledge_graph_id` string, uuid, required
  - `name` string, required
  - `package_count` integer, required
  - `document_count` integer, required
  - `visual_component_count` integer, required
  - `node_count` integer, required
  - `edge_count` integer, required
  - `extraction_run_count` integer, required
  - `extraction_source_count` integer, required
  - `attribute_claim_count` integer, required
  - `fact_resolution_count` integer, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/outerport/apis/outerport-api.md) · [All operations](https://skmtc.dev/outerport/apis/outerport-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/outerport/outerport-api/revisions/f565b46daaea/schema)
