Skip to main content

Quickstart

Follow these steps to get started with Warrant, from account creation to creating and enforcing rules in < 10 minutes.

Create an account

  • First, create an account for your organization.
  • Once you're logged in, you can view your API keys and invite your teammates.
  • The dashboard lets you view and manage your entire authorization model, including your object types, warrants, users, tenants and environments.
note

If a Warrant account already exists for your organization, please ask your account admin to invite you directly from the dashboard.

Create your access model

Use our built-in object types for RBAC, multitenancy or pricing tiers and feature entitlements or build your own model.

Install & configure SDK(s)

The primary way to interact with Warrant is via the REST APIs. You can call API endpoints directly (API reference) or use one of the official open-source SDKs in your applications:

Back-end (server-side)

Install the Go SDK
go get github.com/warrant-dev/warrant-go/v5
Use it in an application
import (
"github.com/warrant-dev/warrant-go/v5"
)

client := warrant.NewClient(config.ClientConfig{
ApiKey: "YOUR_KEY"
})

Front-end (client-side)

Install the React SDK
npm install @warrantdev/react-warrant-js
Use it in an application
// App.jsx
import React from "react";
import { WarrantProvider } from "@warrantdev/react-warrant-js";

const App = () => {
return (
<WarrantProvider clientKey="CLIENT_KEY">
{/* Routes, ThemeProviders, etc. */}
</WarrantProvider>
);
};

export default App;

Integrate with your application

Now that you've set up an account, your access model, and SDK(s), you can integrate Warrant into your application: