deals

Embed
Preview of the card
<a href="https://linkyhub.net/docs/ref-deals"><img src="https://linkyhub.net/docs/_api/public/orgs/2fd2a4b7-b627-4925-af1e-1c51bf890403/spaces/c4b920fb-a433-40b5-b354-ff84bf0c3eb1/pages/033e4261-ad45-422c-b9b1-1481e4adbfce/social-card.svg?v=3e7ae33eec8b" alt="deals" width="600" height="315"></a>
GEThttps://linkyhub.net/api/v3/dealsScope deals:read

Brand deals, their stage and value.

Code samples

cURL
curl -X GET "https://linkyhub.net/api/v3/deals" \
  -H "Authorization: Bearer $LINKYHUB_API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Done.
Example
{
  "data": [
    {}
  ]
}
Schema
dataobject[]required
Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
default An error.
Example
{
  "error": "string",
  "message": "string"
}
Schema
errorstringrequired
A stable code to branch on, e.g. insufficient_scope.
messagestringrequired
A sentence to show a person.
Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
POSThttps://linkyhub.net/api/v3/dealsScope deals:write

Start tracking a brand deal.

Request body

application/json
brandNamestringrequired
contactEmailstring
valueCentsinteger
currencystring
{
  "brandName": "string",
  "contactEmail": "string",
  "valueCents": 0,
  "currency": "string"
}

Code samples

cURL
curl -X POST "https://linkyhub.net/api/v3/deals" \
  -H "Authorization: Bearer $LINKYHUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"brandName":"string","contactEmail":"string","valueCents":0,"currency":"string"}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

201 Done.
{}
Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
default An error.

Same as default · GET /deals

Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
GEThttps://linkyhub.net/api/v3/deals/{dealId}Scope deals:read

One brand deal with its contact, deliverables and every note.

Parameters

dealIdstringpathrequired

Code samples

cURL
curl -X GET "https://linkyhub.net/api/v3/deals/{dealId}" \
  -H "Authorization: Bearer $LINKYHUB_API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Done.
{}
Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
default An error.

Same as default · GET /deals

Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
PUThttps://linkyhub.net/api/v3/deals/{dealId}Scope deals:write

Rewrite a deal’s details. Omitted optional fields are cleared; stage is kept unless sent.

Parameters

dealIdstringpathrequired

Request body

application/json
brandNamestringrequired
contactNamestring
contactEmailstring
brandUrlstring
valueCentsinteger
currencystring
deliverablesstring[]
One entry per deliverable.
dueAtstring
stagestring
LEAD | PITCHED | NEGOTIATING | AGREED | DELIVERED | PAID | LOST
{
  "brandName": "string",
  "contactName": "string",
  "contactEmail": "string",
  "brandUrl": "string",
  "valueCents": 0,
  "currency": "string",
  "deliverables": [
    "string"
  ],
  "dueAt": "2024-01-01T00:00:00Z",
  "stage": "LEAD"
}

Code samples

cURL
curl -X PUT "https://linkyhub.net/api/v3/deals/{dealId}" \
  -H "Authorization: Bearer $LINKYHUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"brandName":"string","contactName":"string","contactEmail":"string","brandUrl":"string","valueCents":0,"currency":"string","deliverables":["string"],"dueAt":"2024-01-01T00:00:00Z","stage":"LEAD"}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Done.
{}
Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
default An error.

Same as default · GET /deals

Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
DELETEhttps://linkyhub.net/api/v3/deals/{dealId}Scope deals:write

Delete a deal. An invoice raised from it stays.

Parameters

dealIdstringpathrequired

Code samples

cURL
curl -X DELETE "https://linkyhub.net/api/v3/deals/{dealId}" \
  -H "Authorization: Bearer $LINKYHUB_API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Done.
{}
Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
default An error.

Same as default · GET /deals

Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
PATCHhttps://linkyhub.net/api/v3/deals/{dealId}Scope deals:write

Move a deal to another stage.

Parameters

dealIdstringpathrequired

Request body

application/json
stagestringrequired
LEAD | PITCHED | NEGOTIATING | AGREED | DELIVERED | PAID | LOST
{
  "stage": "LEAD"
}

Code samples

cURL
curl -X PATCH "https://linkyhub.net/api/v3/deals/{dealId}" \
  -H "Authorization: Bearer $LINKYHUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"stage":"LEAD"}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Done.
{}
Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
default An error.

Same as default · GET /deals

Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
POSThttps://linkyhub.net/api/v3/deals/{dealId}/notesScope deals:write

Add a note to a deal.

Parameters

dealIdstringpathrequired

Request body

application/json
notestringrequired
{
  "note": "string"
}

Code samples

cURL
curl -X POST "https://linkyhub.net/api/v3/deals/{dealId}/notes" \
  -H "Authorization: Bearer $LINKYHUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"note":"string"}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

201 Done.
{}
Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
default An error.

Same as default · GET /deals

Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
POSThttps://linkyhub.net/api/v3/deals/{dealId}/invoiceScope invoices:write

Raise a draft invoice from a deal’s brand, contact, value and deliverables. Once per deal.

Parameters

dealIdstringpathrequired

Code samples

cURL
curl -X POST "https://linkyhub.net/api/v3/deals/{dealId}/invoice" \
  -H "Authorization: Bearer $LINKYHUB_API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Done.
{}
Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
default An error.

Same as default · GET /deals

Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
Updated