Quickstart
Get your first agent authenticated and running with Nayker in under 5 minutes.
1. Create an Agent Identity
First, navigate to your dashboard and generate a new Agent Identity. You will receive an `AGENT_ID` and an `AGENT_SECRET`. Keep these safe.
2. Install the SDK
Install the Nayker SDK for your language of choice.
npm install @nayker/sdk3. Initialize the Client
Initialize the Nayker client in your agent code.
import { NaykerClient } from '@nayker/sdk';
const nayker = new NaykerClient({
agentId: process.env.NAYKER_AGENT_ID,
agentSecret: process.env.NAYKER_AGENT_SECRET
});
// Request an access token for an external service
const token = await nayker.requestToken('stripe', 'read_invoices');