Skip to main content

Quick Start

Run your first job in 5 minutes.

Before you start (~2 min): sign up, create a project, copy your API key. The rest of this guide walks you through enqueueing your first background job with Zeridion Flare.

Prerequisites

Don't have an API key yet?

Sign up via the dashboard to create a free account. Your API key will be available in the dashboard immediately — no credit card required.

1. Install the SDK

dotnet add package Zeridion.Flare

Targets net10.0 and netstandard2.1 — works on .NET 6 through .NET 10.

2. Configure your API key

Add your key to appsettings.json:

{
"Zeridion": {
"ApiKey": "zf_live_sk_xxxxxxxxxxxxxxxxxxxx"
}
}

Your API key starts with zf_live_sk_ (production) or zf_test_sk_ (test).

3. Enqueue your first job

Register in Program.cs:

using Zeridion.Flare;

var builder = WebApplication.CreateBuilder(args);

builder.Services.AddZeridionFlare(options =>
{
options.ApiKey = builder.Configuration["Zeridion:ApiKey"]!;
});

var app = builder.Build();
app.UseZeridionFlare();
app.Run();

Define a job:

// IEmailService is your dependency — register it in DI before adding the job.
public sealed class SendWelcomeEmail(IEmailService email) : IJob<NewUserEvent>
{
public async Task ExecuteAsync(NewUserEvent payload, JobContext ctx)
{
await email.SendAsync(payload.Email, "Welcome!", ctx.CancellationToken);
ctx.Logger.LogInformation("Welcome email sent to {Email}", payload.Email);
}
}

public sealed record NewUserEvent
{
public required string Email { get; init; }
public required string Name { get; init; }
}

Enqueue it:

app.MapPost("/register", async (RegisterRequest req, IJobClient jobs) =>
{
var user = await CreateUser(req);

await jobs.EnqueueAsync<SendWelcomeEmail>(
new NewUserEvent { Email = user.Email, Name = user.Name });

return Results.Ok(user);
});

AddZeridionFlare scans your assemblies for job classes, registers the HTTP client, job client, and background worker. UseZeridionFlare validates the job-type catalog at startup.

Try in Postman, Insomnia, or any OpenAPI tool

Postman: Download the Zeridion Flare Postman collection and import it. Set the baseUrl and apiKey collection variables once, then run the pre-built requests in order — the Create Job request auto-stores the returned job ID for subsequent Get / Retry / Cancel calls.

Any OpenAPI 3.x tool (Insomnia, Thunder Client, Hoppscotch, Bruno, RapidAPI, …): import the live OpenAPI spec from https://docs.zeridion.com/api/openapi.json. The spec is the canonical machine-readable contract — every endpoint, parameter, response shape, and error code is in there. It updates with every release.

Next steps

See also

  • Jobs API — full job-create, status, cancel, and export reference
  • IJob<T> — the .NET interface every job class implements
  • Error Handling guide — retry, fallback, and dead-letter patterns