Post gifts
6 routes. Paths are relative to https://api.intersink.com/v1.
- POST/post-giftsSend
- GET/post-gifts/{id}Get one
- GET/post-gifts/post/{postId}List by post
- GET/post-gifts/post/{postId}/summaryPost summary
- GET/post-gifts/receivedReceived
- GET/post-gifts/sentSent
Send
POST/post-gifts
Needs a signed-in user (Bearer token or access_token cookie).
Send a catalog gift on a post (NEW row every time).
Parameters
| Name | Type | Description |
|---|---|---|
| Idempotency-Key | string, header | Optional client-generated key (8-128 chars, [A-Za-z0-9_-]). A retry with the same key and body replays the first response (Idempotent-Replayed: true); 409 while the first is in flight; 422 if the body differs. |
Request body application/json
| Field | Type | Description |
|---|---|---|
| post_idrequired | number | Minimum 1. |
| gift_idrequired | number | Minimum 1. |
Response
201. The payload in data is not described in the spec yet.
Get one
GET/post-gifts/{id}
Needs a signed-in user (Bearer token or access_token cookie).
One transaction (sender or recipient).
Parameters
| Name | Type | Description |
|---|---|---|
| idrequired | number, path |
Response
200. The payload in data is not described in the spec yet.
List by post
GET/post-gifts/post/{postId}
Needs a signed-in user (Bearer token or access_token cookie).
All gifts sent on a post (detailed, each with catalog detail).
Parameters
| Name | Type | Description |
|---|---|---|
| postIdrequired | number, path | |
| page | number, query | Minimum 1. |
| limit | number, query | Minimum 1. |
Response
200. The payload in data is not described in the spec yet.
Post summary
GET/post-gifts/post/{postId}/summary
Needs a signed-in user (Bearer token or access_token cookie).
A post's gift total and count (the feed bridge; no rows embedded).
Parameters
| Name | Type | Description |
|---|---|---|
| postIdrequired | number, path |
Response
200. The payload in data is not described in the spec yet.
Received
GET/post-gifts/received
Needs a signed-in user (Bearer token or access_token cookie).
Gifts I received (+ total received).
Parameters
| Name | Type | Description |
|---|---|---|
| page | number, query | Minimum 1. |
| limit | number, query | Minimum 1. |
Response
200. The payload in data is not described in the spec yet.
Sent
GET/post-gifts/sent
Needs a signed-in user (Bearer token or access_token cookie).
Gifts I sent.
Parameters
| Name | Type | Description |
|---|---|---|
| page | number, query | Minimum 1. |
| limit | number, query | Minimum 1. |
Response
200. The payload in data is not described in the spec yet.