GET/challenge
Issue one-time challenge nonce for key-ownership proof
レスポンス
200 Issued nonce with 5-minute TTL400 invalid_recipient_bucket
OpenAPI 定義
{
"summary": "Issue one-time challenge nonce for key-ownership proof",
"parameters": [
{
"name": "recipient_bucket",
"in": "query",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
}
}
],
"responses": {
"200": {
"description": "Issued nonce with 5-minute TTL",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"nonce",
"recipient_bucket",
"expires_in_ms"
],
"properties": {
"nonce": {
"type": "string"
},
"recipient_bucket": {
"type": "string"
},
"expires_in_ms": {
"type": "integer",
"const": 300000
}
}
}
}
}
},
"400": {
"description": "invalid_recipient_bucket"
}
}
}
POST/auth/session
Exchange body-signed key challenge (supports large PQC signatures) for a 5-minute Bearer session token
レスポンス
200 Issued short-lived Bearer session token400 invalid_json | invalid_session_request | invalid_did401 invalid_or_expired_nonce | challenge_payload_mismatch | invalid_challenge_signature413 payload_too_large
OpenAPI 定義
{
"summary": "Exchange body-signed key challenge (supports large PQC signatures) for a 5-minute Bearer session token",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"did",
"nonce",
"sig"
],
"properties": {
"did": {
"type": "string"
},
"nonce": {
"type": "string"
},
"sig": {
"type": "string"
}
}
}
}
}
},
"responses": {
"200": {
"description": "Issued short-lived Bearer session token"
},
"400": {
"description": "invalid_json | invalid_session_request | invalid_did"
},
"401": {
"description": "invalid_or_expired_nonce | challenge_payload_mismatch | invalid_challenge_signature"
},
"413": {
"description": "payload_too_large"
}
}
}
GET/manifests/{key_hash}
Fetch latest signed EndpointManifest for key_hash
レスポンス
200 Signed EndpointManifest404 manifest_not_found
OpenAPI 定義
{
"summary": "Fetch latest signed EndpointManifest for key_hash",
"parameters": [
{
"name": "key_hash",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
}
}
],
"responses": {
"200": {
"description": "Signed EndpointManifest"
},
"404": {
"description": "manifest_not_found"
}
}
}
PUT/manifests/{key_hash}
Register or update signed EndpointManifest (strictly monotonic seq)
レスポンス
200 Manifest stored400 invalid_json | invalid_manifest | key_hash_mismatch409 stale_manifest_seq413 payload_too_large
OpenAPI 定義
{
"summary": "Register or update signed EndpointManifest (strictly monotonic seq)",
"parameters": [
{
"name": "key_hash",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/EndpointManifest"
}
}
}
},
"responses": {
"200": {
"description": "Manifest stored"
},
"400": {
"description": "invalid_json | invalid_manifest | key_hash_mismatch"
},
"409": {
"description": "stale_manifest_seq"
},
"413": {
"description": "payload_too_large"
}
}
}
POST/manifests/{key_hash}/succeed
Rotate root DID via mutually signed KeySuccessionCert and optionally migrate alias bindings
レスポンス
200 Key succession recorded and new manifest stored400 invalid_json | invalid_succession_request | invalid_succession | key_hash_mismatch | new_manifest_did_mismatch | old_manifest_did_mismatch | old_manifest_successor_mismatch409 stale_manifest_seq413 payload_too_large
OpenAPI 定義
{
"summary": "Rotate root DID via mutually signed KeySuccessionCert and optionally migrate alias bindings",
"parameters": [
{
"name": "key_hash",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"cert",
"new_manifest"
],
"properties": {
"cert": {
"$ref": "#/components/schemas/KeySuccessionCert"
},
"new_manifest": {
"$ref": "#/components/schemas/EndpointManifest"
},
"old_manifest": {
"$ref": "#/components/schemas/EndpointManifest"
},
"alias_keys": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
}
},
"responses": {
"200": {
"description": "Key succession recorded and new manifest stored"
},
"400": {
"description": "invalid_json | invalid_succession_request | invalid_succession | key_hash_mismatch | new_manifest_did_mismatch | old_manifest_did_mismatch | old_manifest_successor_mismatch"
},
"409": {
"description": "stale_manifest_seq"
},
"413": {
"description": "payload_too_large"
}
}
}
POST/accounts/bind
Bind GitHub/GitLab account via OAuth token and mirror to directory aliases
レスポンス
200 Account bound400 invalid_json | invalid_bind_request | invalid_manifest401 provider_auth_failed409 stale_manifest_seq413 payload_too_large
OpenAPI 定義
{
"summary": "Bind GitHub/GitLab account via OAuth token and mirror to directory aliases",
"responses": {
"200": {
"description": "Account bound"
},
"400": {
"description": "invalid_json | invalid_bind_request | invalid_manifest"
},
"401": {
"description": "provider_auth_failed"
},
"409": {
"description": "stale_manifest_seq"
},
"413": {
"description": "payload_too_large"
}
}
}
POST/accounts/bind-oidc
Bind OIDC identity (Google / g-Biz ID / Digital Auth) and mirror to directory aliases
レスポンス
200 OIDC account bound400 invalid_json | invalid_oidc_bind_request | invalid_manifest | oidc_provider_not_configured401 oidc_auth_failed409 stale_manifest_seq413 payload_too_large
OpenAPI 定義
{
"summary": "Bind OIDC identity (Google / g-Biz ID / Digital Auth) and mirror to directory aliases",
"responses": {
"200": {
"description": "OIDC account bound"
},
"400": {
"description": "invalid_json | invalid_oidc_bind_request | invalid_manifest | oidc_provider_not_configured"
},
"401": {
"description": "oidc_auth_failed"
},
"409": {
"description": "stale_manifest_seq"
},
"413": {
"description": "payload_too_large"
}
}
}
GET/accounts
Lookup account binding and manifest by subject
レスポンス
200 Account binding and manifest400 missing_subject404 account_not_found
OpenAPI 定義
{
"summary": "Lookup account binding and manifest by subject",
"parameters": [
{
"name": "subject",
"in": "query",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Account binding and manifest"
},
"400": {
"description": "missing_subject"
},
"404": {
"description": "account_not_found"
}
}
}
POST/aliases/bind
Bind normalized AliasKey to did:jwk with attestation (OAuth / OIDC / VC / self_asserted)
レスポンス
200 Alias bound400 invalid_json | invalid_alias_bind_request | invalid_manifest | invalid_alias_key | invalid_vc_attestation | blind_alias_requires_tenant_id401 provider_auth_failed | oidc_auth_failed | vc_verification_failed403 alias_key_mismatch | corp_requires_attestation | idp_alias_requires_verification409 alias_already_bound | stale_manifest_seq413 payload_too_large
OpenAPI 定義
{
"summary": "Bind normalized AliasKey to did:jwk with attestation (OAuth / OIDC / VC / self_asserted)",
"responses": {
"200": {
"description": "Alias bound"
},
"400": {
"description": "invalid_json | invalid_alias_bind_request | invalid_manifest | invalid_alias_key | invalid_vc_attestation | blind_alias_requires_tenant_id"
},
"401": {
"description": "provider_auth_failed | oidc_auth_failed | vc_verification_failed"
},
"403": {
"description": "alias_key_mismatch | corp_requires_attestation | idp_alias_requires_verification"
},
"409": {
"description": "alias_already_bound | stale_manifest_seq"
},
"413": {
"description": "payload_too_large"
}
}
}
DELETE/aliases/bind
Unbind AliasKey (owner key-challenge required)
認証 DeliveryKeyChallenge
レスポンス
200 Alias deleted400 invalid_alias_key401 unauthorized403 alias_owner_mismatch404 alias_not_found
OpenAPI 定義
{
"summary": "Unbind AliasKey (owner key-challenge required)",
"security": [
{
"DeliveryKeyChallenge": []
}
],
"parameters": [
{
"name": "alias",
"in": "query",
"required": false,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Alias deleted"
},
"400": {
"description": "invalid_alias_key"
},
"401": {
"description": "unauthorized"
},
"403": {
"description": "alias_owner_mismatch"
},
"404": {
"description": "alias_not_found"
}
}
}
GET/aliases/resolve
Resolve AliasKey to did:jwk, trust_level, attestation, and EndpointManifest
認証 TenantBearerAuth / DeliveryKeyChallenge
レスポンス
200 Resolved alias binding and manifest400 invalid_alias_key401 blind_alias_requires_tenant_auth404 alias_not_found
OpenAPI 定義
{
"summary": "Resolve AliasKey to did:jwk, trust_level, attestation, and EndpointManifest",
"description": "Public for non-blind aliases. For person:blind:* aliases, authentication is checked BEFORE existence lookup to prevent existence oracles.",
"security": [
{},
{
"TenantBearerAuth": []
},
{
"DeliveryKeyChallenge": []
}
],
"parameters": [
{
"name": "alias",
"in": "query",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Resolved alias binding and manifest"
},
"400": {
"description": "invalid_alias_key"
},
"401": {
"description": "blind_alias_requires_tenant_auth"
},
"404": {
"description": "alias_not_found"
}
}
}
PUT/blobs/{blob_id}
Upload content-addressed encrypted blob (max 25 MiB per blob, 200 MiB per owner key)
認証 DeliveryKeyChallenge
レスポンス
200 Duplicate blob owned by same key201 Blob stored400 empty_blob | blob_hash_mismatch401 unauthorized409 blob_owned_by_another_key413 payload_too_large507 blob_quota_exceeded | blob_store_full
OpenAPI 定義
{
"summary": "Upload content-addressed encrypted blob (max 25 MiB per blob, 200 MiB per owner key)",
"security": [
{
"DeliveryKeyChallenge": []
}
],
"parameters": [
{
"name": "blob_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
}
},
{
"name": "x-delivery-recipients",
"in": "header",
"required": false,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Duplicate blob owned by same key"
},
"201": {
"description": "Blob stored"
},
"400": {
"description": "empty_blob | blob_hash_mismatch"
},
"401": {
"description": "unauthorized"
},
"409": {
"description": "blob_owned_by_another_key"
},
"413": {
"description": "payload_too_large"
},
"507": {
"description": "blob_quota_exceeded | blob_store_full"
}
}
}
GET/blobs/{blob_id}
Download encrypted blob bytes
レスポンス
200 Encrypted octet-stream404 blob_not_found
OpenAPI 定義
{
"summary": "Download encrypted blob bytes",
"parameters": [
{
"name": "blob_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
}
}
],
"responses": {
"200": {
"description": "Encrypted octet-stream"
},
"404": {
"description": "blob_not_found"
}
}
}
DELETE/blobs/{blob_id}
Delete encrypted blob (owner or authorized recipient key-challenge required)
認証 DeliveryKeyChallenge
レスポンス
200 Blob deleted401 unauthorized403 forbidden404 blob_not_found
OpenAPI 定義
{
"summary": "Delete encrypted blob (owner or authorized recipient key-challenge required)",
"security": [
{
"DeliveryKeyChallenge": []
}
],
"parameters": [
{
"name": "blob_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
}
}
],
"responses": {
"200": {
"description": "Blob deleted"
},
"401": {
"description": "unauthorized"
},
"403": {
"description": "forbidden"
},
"404": {
"description": "blob_not_found"
}
}
}
POST/submit
Idempotently submit up to 50 encrypted COSE envelopes to recipient_bucket
レスポンス
200 Envelopes accepted or deduplicated400 invalid_json | invalid_recipient_bucket | invalid_items | invalid_item | invalid_envelope413 payload_too_large
OpenAPI 定義
{
"summary": "Idempotently submit up to 50 encrypted COSE envelopes to recipient_bucket",
"responses": {
"200": {
"description": "Envelopes accepted or deduplicated"
},
"400": {
"description": "invalid_json | invalid_recipient_bucket | invalid_items | invalid_item | invalid_envelope"
},
"413": {
"description": "payload_too_large"
}
}
}
GET/inbox
Retrieve encrypted envelopes for authenticated recipient key
認証 DeliveryKeyChallenge
レスポンス
200 Recipient inbox items401 unauthorized
OpenAPI 定義
{
"summary": "Retrieve encrypted envelopes for authenticated recipient key",
"security": [
{
"DeliveryKeyChallenge": []
}
],
"parameters": [
{
"name": "since",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"minimum": 0
}
}
],
"responses": {
"200": {
"description": "Recipient inbox items"
},
"401": {
"description": "unauthorized"
}
}
}
POST/inbox/ack
Acknowledge/delete envelopes and optionally delete authorized associated blobs
認証 DeliveryKeyChallenge
レスポンス
200 Envelopes acknowledged400 invalid_envelope_ids401 unauthorized413 payload_too_large
OpenAPI 定義
{
"summary": "Acknowledge/delete envelopes and optionally delete authorized associated blobs",
"security": [
{
"DeliveryKeyChallenge": []
}
],
"responses": {
"200": {
"description": "Envelopes acknowledged"
},
"400": {
"description": "invalid_envelope_ids"
},
"401": {
"description": "unauthorized"
},
"413": {
"description": "payload_too_large"
}
}
}
POST/threads
Create bidirectional zero-knowledge delivery thread
認証 DeliveryKeyChallenge
レスポンス
201 Thread created400 invalid_thread_metadata | invalid_participant_bucket | too_many_participants | invalid_initial_message401 unauthorized409 thread_already_exists507 thread_store_full
OpenAPI 定義
{
"summary": "Create bidirectional zero-knowledge delivery thread",
"security": [
{
"DeliveryKeyChallenge": []
}
],
"responses": {
"201": {
"description": "Thread created"
},
"400": {
"description": "invalid_thread_metadata | invalid_participant_bucket | too_many_participants | invalid_initial_message"
},
"401": {
"description": "unauthorized"
},
"409": {
"description": "thread_already_exists"
},
"507": {
"description": "thread_store_full"
}
}
}
GET/threads
Fetch thread metadata and messages since timestamp
認証 DeliveryKeyChallenge
レスポンス
200 Thread and messages401 unauthorized403 forbidden404 thread_not_found
OpenAPI 定義
{
"summary": "Fetch thread metadata and messages since timestamp",
"security": [
{
"DeliveryKeyChallenge": []
}
],
"parameters": [
{
"name": "thread_id",
"in": "query",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "since",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"minimum": 0
}
}
],
"responses": {
"200": {
"description": "Thread and messages"
},
"401": {
"description": "unauthorized"
},
"403": {
"description": "forbidden"
},
"404": {
"description": "thread_not_found"
}
}
}
POST/threads/message
Append encrypted message and advance thread state
認証 DeliveryKeyChallenge
レスポンス
200 Message appended401 unauthorized403 forbidden404 thread_not_found507 thread_store_full
OpenAPI 定義
{
"summary": "Append encrypted message and advance thread state",
"security": [
{
"DeliveryKeyChallenge": []
}
],
"responses": {
"200": {
"description": "Message appended"
},
"401": {
"description": "unauthorized"
},
"403": {
"description": "forbidden"
},
"404": {
"description": "thread_not_found"
},
"507": {
"description": "thread_store_full"
}
}
}
GET/threads/list
List threads for authenticated participant bucket
認証 DeliveryKeyChallenge
レスポンス
200 Participant threads401 unauthorized
OpenAPI 定義
{
"summary": "List threads for authenticated participant bucket",
"security": [
{
"DeliveryKeyChallenge": []
}
],
"parameters": [
{
"name": "status",
"in": "query",
"required": false,
"schema": {
"$ref": "#/components/schemas/DeliveryThreadRecord/properties/status"
}
}
],
"responses": {
"200": {
"description": "Participant threads"
},
"401": {
"description": "unauthorized"
}
}
}