Quickstart ---------- To use our domain management API, you need to register an account with deSEC. Here's a quick intro how to get started: #. :ref:`obtain-a-captcha` and solve it:: curl -X POST https://desec.io/api/v1/captcha/ Note down the captcha ID from the response body, and figure out the solution from the ``challenge`` field. It's a base64-encoded PNG image which you can display by directing your browser to the URL ``data:image/png;base64,``, after replacing ```` with the value of the ``challenge`` response field #. :ref:`register-account`:: curl -X POST https://desec.io/api/v1/auth/ \ --header "Content-Type: application/json" --data @- </``. To confirm your address and activate your account, simply click the link. #. :ref:`log-in`:: curl -X POST https://desec.io/api/v1/auth/login/ \ --header "Content-Type: application/json" --data @- <<< \ '{"email": "youremailaddress@example.com", "password": "yourpassword"}' The response body will contain a ``token`` secret which is used to authenticate requests to the DNS management endpoints as demonstrated in the next step. Note that tokens created by the login endpoint have limited validity (see the ``max_age`` and ``max_unused_period`` fields in the response). To create a long-lived API token, please refer to :ref:`manage-tokens`. #. Create a DNS zone:: curl -X POST https://desec.io/api/v1/domains/ \ --header "Authorization: Token {secret}" \ --header "Content-Type: application/json" --data @- <<< \ '{"name": "example.com"}' #. Yay! Keep browsing the :ref:`domain-management` section of the docs to see how to continue.