Create Passport

POST

Creates a new cryptographic identity (Passport) with a decentralized identifier (DID).

Endpoint

bash
POST /v1/passports

Request Body

ParameterTypeRequiredDescription
typestringRequiredType of Passport. One of: individual, organization, agent
namestringRequiredDisplay name for the Passport holder
metadataobjectOptionalAdditional metadata (email, organization, etc.)
capabilitiesstring[]OptionalArray of initial capability IDs to grant

Example Request

json
{
"type": "individual",
"name": "Alice Smith",
"metadata": {
"email": "alice@example.com",
"organization": "optional"
},
"capabilities": ["optional-initial-capabilities"]
}

Response

Returns a 201 Created status with the newly created Passport object.

FieldTypeDescription
data.passportIdstringUnique identifier for this Passport (use for API calls)
data.didstringDecentralized identifier (DID) - globally unique, cryptographically verifiable
data.typestringType of Passport (individual, organization, or agent)
data.namestringDisplay name
data.publicKeystringPublic key for cryptographic verification
data.createdAtstringISO 8601 timestamp of creation
meta.timestampstringServer processing timestamp
meta.requestIdstringUnique request ID for debugging and support

Example Response

json
{
"data": {
"passportId": "passport_abc123",
"did": "did:key:z6MkpTHR8VNsBxYAAWHut2Geadd9jSwuBV8xRoAnwWsdvktH",
"type": "individual",
"name": "Alice Smith",
"publicKey": "0x...",
"createdAt": "2024-01-10T14:30:00Z"
},
"meta": {
"timestamp": "2024-01-10T14:30:00Z",
"requestId": "req_create_passport_xyz"
}
}

Example Request

>
SDK:

Error Responses

Status CodeError CodeDescription
400invalid_requestMissing required fields or invalid parameter values
401unauthorizedMissing or invalid API key
429rate_limit_exceededToo many requests - see rate limit headers
500internal_errorServer error - contact support with requestId

What Happens

  • • HumanOS generates a cryptographic DID
  • • A public/private key pair is created
  • • The Passport is registered on the distributed ledger
  • • Initial provenance log is created
  • • You receive the Passport ID and DID for future operations