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

# Authentication

> API authentication basics and best practices.

The API uses **Bearer (Token) Authentication** to authenticate any
request. These tokens are **JSON Web Tokens (JWT)** which need
to be created server side by the app.

## Create an API key

To sign a JWT, create a new API key-pair in the dashboard.
To create a new API key visit the **Integrations** panel in the dashboard and click the **Add API key** button.
The API key can be stored with the code or in a secure environment accessible to the
app.

## Server-side SDKs

<CardGroup cols={3}>
  <Card title="C# SDK" icon="hashtag" href="https://github.com/gr4vy/gr4vy-csharp">
    Make server-side calls with the C# SDK.
  </Card>

  <Card title="Go SDK" icon="golang" href="https://github.com/gr4vy/gr4vy-go">
    Make server-side calls with the Go SDK.
  </Card>

  <Card title="Java SDK" icon="java" href="https://github.com/gr4vy/gr4vy-java">
    Make server-side calls with the Java SDK.
  </Card>

  <Card title="PHP SDK" icon="php" href="https://github.com/gr4vy/gr4vy-php">
    Make server-side calls with the PHP SDK.
  </Card>

  <Card title="Python SDK" icon="python" href="https://github.com/gr4vy/gr4vy-python">
    Make server-side calls with the Python SDK.
  </Card>

  <Card title="TypeScript SDK" icon="node-js" href="https://github.com/gr4vy/gr4vy-typescript">
    Make server and client-side API calls with the TypeScript SDK.
  </Card>
</CardGroup>

## Mobile SDKs

<CardGroup cols={3}>
  <Card title="Swift SDK" icon="swift" href="https://github.com/gr4vy/gr4vy-kotlin">
    A low-level, client-side Swift SDK for those looking to build their own
    custom user experiences on Apple devices.
  </Card>

  <Card title="Kotlin SDK" icon="android" href="https://github.com/gr4vy/gr4vy-swift">
    A low-level, client-side Kotlin SDK for those looking to build their own
    custom user experiences on Android
  </Card>

  <Card title="Embed for iOS SDK" icon="apple" href="https://github.com/gr4vy/gr4vy-ios">
    A fully embedded drop-in UI for Apple devices with support for card,
    Apple Pay, and other payment methods.
  </Card>

  <Card title="Embed for Android SDK" icon="android" href="https://github.com/gr4vy/gr4vy-android">
    A fully embedded drop-in UI for Android devices with support for card,
    Google Pay, and other payment methods.
  </Card>
</CardGroup>

## Development tools

<CardGroup cols={3}>
  <Card title="CLI" icon="terminal" href="/guides/tools/cli">
    Create API tokens and checkout sessions with the command line interface tool.
  </Card>

  <Card title="Postman" icon="envelope" href="/guides/tools/postman">
    Start exploring the API using the official Postman collection.
  </Card>
</CardGroup>

## Without SDKs

It is also [possible to generate the JWT](./jwts) without the SDKs
using any number of open source JWT libraries.
