deals
GET
https://linkyhub.net/api/v3 /deals Scope deals:readBrand 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[]requiredHeaders
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
default An error.
Example
{
"error": "string",
"message": "string"
}Schema
errorstringrequiredA stable code to branch on, e.g. insufficient_scope.
messagestringrequiredA sentence to show a person.
Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
POST
https://linkyhub.net/api/v3 /deals Scope deals:writeStart tracking a brand deal.
Request body
application/json
brandNamestringrequiredcontactEmailstringvalueCentsintegercurrencystring{
"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-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
default An error.
Same as default · GET /deals
Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
GET
https://linkyhub.net/api/v3 /deals/{dealId} Scope deals:readOne brand deal with its contact, deliverables and every note.
Parameters
dealIdstringpathrequiredCode 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-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
default An error.
Same as default · GET /deals
Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
PUT
https://linkyhub.net/api/v3 /deals/{dealId} Scope deals:writeRewrite a deal’s details. Omitted optional fields are cleared; stage is kept unless sent.
Parameters
dealIdstringpathrequiredRequest body
application/json
brandNamestringrequiredcontactNamestringcontactEmailstringbrandUrlstringvalueCentsintegercurrencystringdeliverablesstring[]One entry per deliverable.
dueAtstringstagestring{
"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-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
default An error.
Same as default · GET /deals
Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
DELETE
https://linkyhub.net/api/v3 /deals/{dealId} Scope deals:writeDelete a deal. An invoice raised from it stays.
Parameters
dealIdstringpathrequiredCode 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-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
default An error.
Same as default · GET /deals
Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
PATCH
https://linkyhub.net/api/v3 /deals/{dealId} Scope deals:writeMove a deal to another stage.
Parameters
dealIdstringpathrequiredRequest body
application/json
stagestringrequired{
"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-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
default An error.
Same as default · GET /deals
Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
POST
https://linkyhub.net/api/v3 /deals/{dealId}/notes Scope deals:writeAdd a note to a deal.
Parameters
dealIdstringpathrequiredRequest 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-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
default An error.
Same as default · GET /deals
Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
POST
https://linkyhub.net/api/v3 /deals/{dealId}/invoice Scope invoices:writeRaise a draft invoice from a deal’s brand, contact, value and deliverables. Once per deal.
Parameters
dealIdstringpathrequiredCode 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-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
default An error.
Same as default · GET /deals
Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
Updated