EndpointsCogents

Obtain a workspace inference key

PUT/v2/cogents/{cogent_id}/hermes/inference

Returns the current daily key or issues one against the owner's remaining IDE allowance. Keys expire at 00:10 UTC and may be replaced at the returned renewal time. Requests before that time reuse the current key; requests never replenish the budget.

Authorization

BearerAuth
AuthorizationBearer <token>

Bearer token issued by Softmax

In: header

Path Parameters

cogent_id*Cogent Id

The player that owns this Hermes instance.

Match^ply_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$

Request Body

application/json

bundle_id*Bundle Id

Current workspace installation identity.

curl -X PUT "https://softmax.com/api/observatory/v2/cogents/string/hermes/inference" \  -H "Content-Type: application/json" \  -d '{    "bundle_id": "string"  }'
{  "key": "string",  "expires_at": "2019-08-24T14:15:22Z",  "renew_at": "2019-08-24T14:15:22Z",  "allowance_usd": 0}