# Sophia http

## Sophia HTTP Interface Documentation&#x20;

<table data-view="cards"><thead><tr><th></th><th data-hidden data-card-target data-type="content-ref"></th><th data-hidden data-card-cover data-type="files"></th></tr></thead><tbody><tr><td>Sophia HTTP Documentation</td><td><a href="/spaces/yxhRUAwn7tH8JUboTur7/pages/JlX7JzoGJXYoU9GCzQRl">/spaces/yxhRUAwn7tH8JUboTur7/pages/JlX7JzoGJXYoU9GCzQRl</a></td><td><a href="/files/Mn0raWPCGdVF9LgIRfVj">/files/Mn0raWPCGdVF9LgIRfVj</a></td></tr><tr><td>HTTP in æternity Documentation</td><td><a href="/spaces/yxhRUAwn7tH8JUboTur7/pages/0SfcKQwxcQ7xHbQ75TfC">/spaces/yxhRUAwn7tH8JUboTur7/pages/0SfcKQwxcQ7xHbQ75TfC</a></td><td><a href="/files/60QmGVxDyAZeLFAtGHRM">/files/60QmGVxDyAZeLFAtGHRM</a></td></tr></tbody></table>

The documentation describes the HTTP API for the Sophia smart contract compiler on the æternity blockchain. It covers essential endpoints including contract compilation, ACI generation, calldata encoding/decoding, bytecode validation, and version information.

The documentation provides practical Docker deployment instructions and demonstrates real-world usage through examples with a SimpleStorage contract. Each example shows the complete request/response cycle using curl commands, illustrating how to compile contracts, validate bytecode, encode function calls, decode contract responses, and extract compiler information.

The interface primarily accepts and returns JSON-formatted data, with endpoints operating on port 3080 by default. The documentation serves as a comprehensive reference for developers building applications that interact with Sophia smart contracts on the æternity platform.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.aeternity.com/aeternity-developer-tools/markdown/sophia-http.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
