> ## Documentation Index
> Fetch the complete documentation index at: https://api-docs.anzi.finance/llms.txt
> Use this file to discover all available pages before exploring further.

# Basic API Flow

> In this session, you can find the basic flow for generating and claiming the guarantees for your credits.

<Note>
  Before you start building, we highly recommend reading the **[Core
  Concepts](/core-concepts/license)** to understand how Licenses, Guarantees,
  and related terms work.
</Note>

<Steps>
  <Step title="1st - POST users/apikeys">
    Call the <a href="/api-reference/users/create-api-key">Create API Key</a> endpoint to generate your API credentials.
    Use your corporate email and the password for the selected environment (Sandbox or Production) to generate the key.
    You can also create it through our platform by following <a href="/authentication#creating-an-api-key-through-the-interface">this guide</a>.
    After you receive your API key, include it in every request header as `X-API-KEY`.
  </Step>

  <Step title="2nd - GET /licenses/all (optional)">
    Understand your operational licenses. Before you start, we recommend reviewing
    and understanding your operational licenses. See{' '}
    <a href="/api-reference/licenses/list-licenses">List Licenses</a> for the
    endpoint that returns the configuration of your licenses and the key
    constraints you must consider when creating guarantees.
  </Step>

  <Step title="3rd - GET /guarantees/coverages (optional)">
    Before creating your guarantee, you may want to estimate the portion of your
    credit covered by Anzi and the premium you would pay. This endpoint returns
    both coverage and premium based on your license configuration. See
    <a href="/api-reference/guarantees/get-coverages-data">Get Coverages</a> for
    details.
  </Step>

  <Step title="4th - POST /guarantees">
    This endpoint is ready to work in tandem with your credit origination system,
    enabling you to create guarantees for your credits that you wish to be covered
    by Anzi in case of default. See{' '}
    <a href="/api-reference/guarantees/create-a-guarantee">Create Guarantee</a>.
  </Step>

  <Step title="5th - PUT /guarantees/credit-status (Claim Guarantees)">
    Periodically update your portfolio's credit status through this endpoint. You
    can also declare claims for guarantees that have gone into default.
    See <a href="/api-reference/guarantees/update-credit-status">Update Credit Status</a>.
  </Step>
</Steps>

That's how simple it is to safeguard your and your investors' money from defaults by integrating Anzi's coverages into your credit ecosystem.
