JSON Schemas¶
This page lists all JSON Schema definitions for the a2p protocol.
Schema Files¶
| Schema | Description |
|---|---|
profile.schema.json | User profile structure |
memory.schema.json | Memory entry structure |
proposal.schema.json | Memory proposal structure |
consent-policy.schema.json | Access policy structure |
consent-receipt.schema.json | Consent receipt structure |
agent-profile.schema.json | Agent profile structure |
entity-profile.schema.json | Entity profile structure |
access-request.schema.json | Access request with purpose |
Download¶
All schemas are available in the repository:
Example: Profile Schema¶
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://a2p.protocol/schemas/v1/profile.json",
"title": "A2P Profile",
"type": "object",
"required": ["id", "version", "profileType"],
"properties": {
"id": {
"type": "string",
"pattern": "^did:a2p:(user|agent|entity):.+"
},
"version": {
"type": "string",
"pattern": "^\\d+\\.\\d+$"
},
"profileType": {
"type": "string",
"enum": ["human", "agent", "entity"]
}
}
}
Validation¶
Use any JSON Schema validator: