Accept a creator proposal
curl --request POST \
--url https://workspace.passionfroot.me/api/v1/proposals/{proposalId}/accept \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://workspace.passionfroot.me/api/v1/proposals/{proposalId}/accept', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://workspace.passionfroot.me/api/v1/proposals/{proposalId}/accept"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text){
"data": {
"proposalId": "<string>",
"collaborationId": "<string>",
"requestId": "<string>",
"status": "offer_pending",
"createdBy": "creator",
"priceCents": 123,
"currency": "<string>",
"packageName": "<string>",
"placements": [
{
"date": "2023-11-07T05:31:56Z",
"postType": "<string>",
"platform": "<string>"
}
],
"comment": "<string>"
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "Invalid or expired API key"
}
}{
"error": {
"code": "MISSING_SCOPE",
"message": "API key missing required scope: write:conversations"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "Conversation not found"
}
}{
"error": {
"code": "INVALID_REQUEST",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "RATE_LIMITED",
"message": "This API key is over its rate limit. Wait for Retry-After before sending more.",
"details": {
"limit": 2,
"windowSeconds": 1
}
}
}{
"error": {
"code": "SERVICE_UNAVAILABLE",
"message": "API key verification is temporarily unavailable, retry shortly"
}
}Proposals
Accept a creator proposal
Confirms a creator-authored proposal. Accepting an already accepted proposal returns its current state.
POST
/
proposals
/
{proposalId}
/
accept
Accept a creator proposal
curl --request POST \
--url https://workspace.passionfroot.me/api/v1/proposals/{proposalId}/accept \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://workspace.passionfroot.me/api/v1/proposals/{proposalId}/accept', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://workspace.passionfroot.me/api/v1/proposals/{proposalId}/accept"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text){
"data": {
"proposalId": "<string>",
"collaborationId": "<string>",
"requestId": "<string>",
"status": "offer_pending",
"createdBy": "creator",
"priceCents": 123,
"currency": "<string>",
"packageName": "<string>",
"placements": [
{
"date": "2023-11-07T05:31:56Z",
"postType": "<string>",
"platform": "<string>"
}
],
"comment": "<string>"
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "Invalid or expired API key"
}
}{
"error": {
"code": "MISSING_SCOPE",
"message": "API key missing required scope: write:conversations"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "Conversation not found"
}
}{
"error": {
"code": "INVALID_REQUEST",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "RATE_LIMITED",
"message": "This API key is over its rate limit. Wait for Retry-After before sending more.",
"details": {
"limit": 2,
"windowSeconds": 1
}
}
}{
"error": {
"code": "SERVICE_UNAVAILABLE",
"message": "API key verification is temporarily unavailable, retry shortly"
}
}
