SSH Authentication
curl --location 'https://api.deeptrin.com/v1/rentgpu/auths' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{API_TOKEN}}' \
--data '{"value":"{{YOUR_PASSWORD}}"}'import requests
import json
url = "https://api.deeptrin.com/v1/rentgpu/auths"
payload = json.dumps({
"value": "{{YOUR_PASSWORD}}"
})
headers = {
'Content-Type': 'application/json',
'Authorization': 'Bearer {{API_TOKEN}}'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
{
"id": 0,
"value": "..."
}Last updated