---
title: "Get Access Token"
method: GET
path: "/protocol/token/{planId}/{agentId}"
tags: ["Protocol - Access"]
---

# Get Access Token

`GET /protocol/token/{planId}/{agentId}`

## Request

- Base URL: `https://api.sandbox.nevermined.app/api/v1`
- URL: `https://api.sandbox.nevermined.app/api/v1/protocol/token/{planId}/{agentId}`
- Auth: HTTP bearer

Generates access credentials for agent-plan interaction.

## Path parameters

- `planId` integer, required
- `agentId` string, required

## Response `200`

Access token generated

- AccessTokenResponse
  - `accessToken` string
  - `neverminedProxyUri` string
  - `expiresAt` string, date-time

## Other responses

- `401`: Unauthorized
- `402`: No active subscription
- `404`: Plan or agent not found

---

[API](https://skmtc.dev/nevermined/apis/nevermined-api.md) · [All operations](https://skmtc.dev/nevermined/apis/nevermined-api/llms.txt) · [OpenAPI document](https://skmtc.dev/nevermined/apis/nevermined-api/revisions/cabbe618c80b?raw)
