---
title: "API Explorer - call a custom RPC endpoint"
method: POST
path: "/v2/console/api/endpoints/rpc/{method}"
tags: ["Console"]
---

# API Explorer - call a custom RPC endpoint

`POST /v2/console/api/endpoints/rpc/{method}`

## Request

- Base URL: `http://127.0.0.1:7351`
- URL: `http://127.0.0.1:7351/v2/console/api/endpoints/rpc/{method}`
- Auth: API key in header `Authorization`

## Path parameters

- `method` string, required

## Request body

- CallRpcEndpointBody
  - `body` string
  - `user_id` string
  - `session_vars` object

## Response `200`

A successful response.

- CallApiEndpointResponse
  - `body` string
  - `error_message` string

## Other responses

- `default`: An unexpected error response.

---

[API](https://skmtc.dev/heroiclabs/apis/nakama-console-api-v2.md) - [All operations](https://skmtc.dev/heroiclabs/apis/nakama-console-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/heroiclabs/apis/nakama-console-api-v2/revisions/fbde2e3c5ead?raw)
