an class="p">(</span><span class="n">data</span><span class="p">[</span><span class="s1">&#39;endpoints&#39;</span><span class="p">])</span><span class="si">}</span><span class="s2">&quot;</span><span class="p">)</span>
</span></code></pre></div></p>
<h2 id="error-handling">Error Handling</h2>
<p>If an error occurs, the API will return a JSON object with an error message:</p>
<div class="language-json highlight"><pre><span></span><code><span id="__span-12-1"><a id="__codelineno-12-1" name="__codelineno-12-1