---
title: "tips.goal-create-request@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/tips.goal-create-request"
updated: null
---

# tips.goal-create-request@1 · OpenVibe.Services

HTML: [tips.goal-create-request@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/tips.goal-create-request)

# TipsGoalCreateRequest `tips.goal-create-request@1`

Generated at 2026-12-01 05:42:00 UTC from [`openvibe-contracts v0.454.0`](https://github.com/OpenVibers/OpenVibe.Contracts/tree/v0.454.0) and [`openvibe-sdk v0.193.0`](https://github.com/OpenVibers/OpenVibe.SDK/tree/v0.193.0).

- Version: 1.0.0
- Owner: tips
- Visibility: first-party
- Status: active
- Compatibility: backward
- Schema: [`https://openvibe.network/contracts/tips/goal-create-request.v1.json`](/docs/contracts/tips.goal-create-request.json)

tips.goal-create-request@1: the body of tips.goal.create on OpenVibe.Tips. POST /api/v1/goals: { creator?, title, target\_amount, description?, image\_url?, sort\_order? } opens a goal (a service names the creator; a person opens one on their own page). Its total is derived from settled interactions only. Needs an Idempotency-Key header (8-200 of A-Z a-z 0-9 . \_ : -; 400 idempotency.key\_required): a replay with the same key and body returns the first answer, the same key with another body is 422 idempotency.key\_reused. Refusals are problem+json: 422 tips.invalid\_input (no title, a bad image\_url or sort\_order), tips.invalid\_amount or tips.text\_too\_long; 409 tips.too\_many\_goals (20 active at most); 404 tips.creator\_not\_found; 403 capability.denied or tips.forbidden. Unknown fields are ignored.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `creator` | one of |  | The creator (default: the signed-in person). |  |
| `title` | string | yes |  | - `minLength 1`<br>- `maxLength 120` |
| `target_amount` | integer \| string | yes | Vibes bits, at most TIPS\_MAX\_BITS (10000000 by default). | - `pattern ^[1-9][0-9]*$`<br>- `minimum 1`<br>- `maximum 10000000` |
| `description` | string \| null |  |  | - `maxLength 1000` |
| `image_url` | string \| null |  | An https URL; empty or null clears it. |  |
| `sort_order` | integer \| string |  |  | - `pattern ^[0-9]{1,4}$`<br>- `minimum 0`<br>- `maximum 1000` |

## Examples

From the contract's own test fixtures: valid ones validate, rejected ones must fail.

 Valid: mic

~~~~
{
  "creator": {
    "type": "user",
    "id": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ"
  },
  "title": "New microphone",
  "target_amount": 20000,
  "description": "Help me sound less like a tin can."
}
~~~~

Rejected: no-target

~~~~
{
  "title": "New microphone"
}
~~~~

## Validate

~~~~
const contracts = require('openvibe-contracts');
contracts.validate('tips.goal-create-request@1', value);   // { valid, errors: [{ path, message }] }
~~~~
