---
title: "Get Partner Token"
method: GET
path: "/v1/esign/partner/authentication"
tags: ["Authentication"]
---

# Get Partner Token

`GET /v1/esign/partner/authentication`

## Request

- Base URL: `https://onekyc-token.staging.gopayapi.com`
- URL: `https://onekyc-token.staging.gopayapi.com/v1/esign/partner/authentication`
- Auth: none declared. Required headers: `client-id`, `pass-key`

Fetch the partner token needed to call IAB Backend APIs.
The partner token will be valid for 1 hour. After expiry, partners can create a new token.

## Headers

- `client-id` string, required
- `pass-key` string, required

## Response `200`

Successfully retrieved partner token

- PartnerTokenResponse
  - `success` boolean
  - `data` object
    - `token` string: JWT token for authentication
    - `expiry_seconds` string: Token validity period in seconds

## Other responses

- `400`: Request headers missing
- `401`: Unauthorized

---

[API](https://skmtc.dev/midtrans/apis/esign-api-authentication.md) - [All operations](https://skmtc.dev/midtrans/apis/esign-api-authentication/llms.txt) - [OpenAPI document](https://skmtc.dev/midtrans/apis/esign-api-authentication/revisions/020c06275dff?raw)
