spec - Movement

Returns the node's own OpenAPI specification. Useful for tooling that wants the machine-readable schema straight from the node.

Endpoint

httpGET /v1/spec

Example

bashexport MOVEMENT_REST=https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/

curl "${MOVEMENT_REST}v1/spec"

Response

json{
    "openapi": "3.0.0",
    "info": {
        "title": "Aptos Node API",
        "version": "1.0.0"
    },
    "paths": {}
}

Response Fields

FieldTypeDescription
(root)objectThe node's OpenAPI document

Use Cases

  • Tooling: Fetch the live OpenAPI schema from the node

Error Handling

ErrorMessageDescription
400 / Bad requestBad requestA path, query, or body parameter was invalid
404 / Not foundNot foundThe account, block, transaction, or resource does not exist
403 / RBAC: access deniedAccess deniedThe GetBlock access token is missing or incorrect