Decline an opportunity
curl --request POST \
--url https://api.gpuoutlet.ai/v1/opportunities/{id}/decline \
--header 'Authorization: Bearer <token>' \
--header 'Idempotency-Key: <idempotency-key>'import requests
url = "https://api.gpuoutlet.ai/v1/opportunities/{id}/decline"
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>"
}
response = requests.post(url, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Idempotency-Key': '<idempotency-key>', Authorization: 'Bearer <token>'}
};
fetch('https://api.gpuoutlet.ai/v1/opportunities/{id}/decline', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.gpuoutlet.ai/v1/opportunities/{id}/decline",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Idempotency-Key: <idempotency-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.gpuoutlet.ai/v1/opportunities/{id}/decline"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.gpuoutlet.ai/v1/opportunities/{id}/decline")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gpuoutlet.ai/v1/opportunities/{id}/decline")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "<string>",
"status": "offered",
"listingId": "<string>",
"demand": {
"gpuModel": "<string>",
"gpusPerNode": 123,
"nodes": 123,
"region": "<string>",
"startsAt": "2023-11-07T05:31:56Z",
"endsAt": "2023-11-07T05:31:56Z",
"durationMonths": 123,
"budgetMonthlyCents": 123,
"currency": "USD"
},
"offeredAt": "2023-11-07T05:31:56Z",
"decidedAt": "2023-11-07T05:31:56Z"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"param": "<string>",
"required_scope": "<string>",
"retry_after_seconds": 123,
"current": "<string>",
"problems": [
"<string>"
]
}
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"param": "<string>",
"required_scope": "<string>",
"retry_after_seconds": 123,
"current": "<string>",
"problems": [
"<string>"
]
}
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"param": "<string>",
"required_scope": "<string>",
"retry_after_seconds": 123,
"current": "<string>",
"problems": [
"<string>"
]
}
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"param": "<string>",
"required_scope": "<string>",
"retry_after_seconds": 123,
"current": "<string>",
"problems": [
"<string>"
]
}
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"param": "<string>",
"required_scope": "<string>",
"retry_after_seconds": 123,
"current": "<string>",
"problems": [
"<string>"
]
}
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"param": "<string>",
"required_scope": "<string>",
"retry_after_seconds": 123,
"current": "<string>",
"problems": [
"<string>"
]
}
}Opportunities
Decline an opportunity
Nobody is told who asked. Only an offered opportunity can be declined; declining one already declined answers it as it is. Accepting — and being shown the buyer — is dashboard only. Requires opportunities:write and the opportunity.reveal right (trader, authorized signatory or owner). Idempotency-Key is required; no body.
POST
/
opportunities
/
{id}
/
decline
Decline an opportunity
curl --request POST \
--url https://api.gpuoutlet.ai/v1/opportunities/{id}/decline \
--header 'Authorization: Bearer <token>' \
--header 'Idempotency-Key: <idempotency-key>'import requests
url = "https://api.gpuoutlet.ai/v1/opportunities/{id}/decline"
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>"
}
response = requests.post(url, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Idempotency-Key': '<idempotency-key>', Authorization: 'Bearer <token>'}
};
fetch('https://api.gpuoutlet.ai/v1/opportunities/{id}/decline', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.gpuoutlet.ai/v1/opportunities/{id}/decline",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Idempotency-Key: <idempotency-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.gpuoutlet.ai/v1/opportunities/{id}/decline"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.gpuoutlet.ai/v1/opportunities/{id}/decline")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gpuoutlet.ai/v1/opportunities/{id}/decline")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "<string>",
"status": "offered",
"listingId": "<string>",
"demand": {
"gpuModel": "<string>",
"gpusPerNode": 123,
"nodes": 123,
"region": "<string>",
"startsAt": "2023-11-07T05:31:56Z",
"endsAt": "2023-11-07T05:31:56Z",
"durationMonths": 123,
"budgetMonthlyCents": 123,
"currency": "USD"
},
"offeredAt": "2023-11-07T05:31:56Z",
"decidedAt": "2023-11-07T05:31:56Z"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"param": "<string>",
"required_scope": "<string>",
"retry_after_seconds": 123,
"current": "<string>",
"problems": [
"<string>"
]
}
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"param": "<string>",
"required_scope": "<string>",
"retry_after_seconds": 123,
"current": "<string>",
"problems": [
"<string>"
]
}
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"param": "<string>",
"required_scope": "<string>",
"retry_after_seconds": 123,
"current": "<string>",
"problems": [
"<string>"
]
}
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"param": "<string>",
"required_scope": "<string>",
"retry_after_seconds": 123,
"current": "<string>",
"problems": [
"<string>"
]
}
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"param": "<string>",
"required_scope": "<string>",
"retry_after_seconds": 123,
"current": "<string>",
"problems": [
"<string>"
]
}
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"param": "<string>",
"required_scope": "<string>",
"retry_after_seconds": 123,
"current": "<string>",
"problems": [
"<string>"
]
}
}Authorizations
An API key from your dashboard, sent as Authorization: Bearer gpk_….
Headers
Unique per intent. Retries of the same intent must reuse it verbatim; a new intent needs a new one. Remembered for 24 hours.
Required string length:
1 - 255Pattern:
^[\x20-\x7E]+$Path Parameters
Response
The opportunity, now declined
offered is the only state that still waits for you.
Available options:
offered, accepted, declined, expired, withdrawn Your listing the demand was matched to
The anonymised specification — a request without its author and without notes.
Show child attributes
Show child attributes