---
title: "Approve Spending"
method: POST
path: "/api/v1/session/approve"
tags: ["Session"]
---

# Approve Spending

`POST /api/v1/session/approve`

Approve the contract to spend MOR tokens on your behalf.

Connects to the proxy-router's /blockchain/approve endpoint.
For creating sessions, approve enough tokens by calculating: bid_price * session_duration.
Uses the DIAMOND_CONTRACT_ADDRESS environment variable as the spender contract address.

## Query parameters

- `amount` integer, required — The amount to approve, consider bid price * duration for sessions

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/morpheusais/apis/morpheus-api-gateway.md) · [All operations](https://skmtc.dev/morpheusais/apis/morpheus-api-gateway/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/morpheusais/morpheus-api-gateway/revisions/061297d1593b/schema)
