---
title: "Expose With Payload"
method: POST
path: "/api/v1/resources/payloads"
tags: ["Resources Resource"]
---

# Expose With Payload

`POST /api/v1/resources/payloads`

## Request

- Base URL: `http://localhost:8080`
- URL: `http://localhost:8080/api/v1/resources/payloads`
- Auth: none declared

## Request body

- ResourcePayload
  - `resourceReference` ResourceReference
    - `labels` object
    - `id` string
    - `location` string
    - `type` string
    - `name` string
    - `description` string
    - `mimeType` string
    - `params` Param[]
      - `name` string
      - `value` string
    - `configurationURI` string
    - `secretsURI` string
    - `namespace` string
  - `configurationData` string
  - `secretsData` string
  - `payload` ResourceReference
    - `labels` object
    - `id` string
    - `location` string
    - `type` string
    - `name` string
    - `description` string
    - `mimeType` string
    - `params` Param[]
      - `name` string
      - `value` string
    - `configurationURI` string
    - `secretsURI` string
    - `namespace` string

## Response `200`

OK

- WanakuResponseResourceReference
  - `error` WanakuError
    - `message` string
  - `data` ResourceReference
    - `labels` object
    - `id` string
    - `location` string
    - `type` string
    - `name` string
    - `description` string
    - `mimeType` string
    - `params` Param[]
      - `name` string
      - `value` string
    - `configurationURI` string
    - `secretsURI` string
    - `namespace` string

## Other responses

- `400`: Bad Request

## Changes

- **2026-05-14** `e544cfb4deed`: 1 info
  - removed the non-success response with the status `500`
- **2026-05-14** `cc2b66f5cdc5`: 1 info
  - added the non-success response with the status `500`
- **2026-05-13** `90c90efc66a2`: 1 info
  - removed the non-success response with the status `500`

[Operation history](https://skmtc.dev/wanaku-ai/apis/wanaku-router-backend-api/changes/api/v1/resources/payloads/post.md)

---

[API](https://skmtc.dev/wanaku-ai/apis/wanaku-router-backend-api.md) - [All operations](https://skmtc.dev/wanaku-ai/apis/wanaku-router-backend-api/llms.txt) - [OpenAPI document](https://skmtc.dev/wanaku-ai/apis/wanaku-router-backend-api/revisions/801af2512b23?raw)
