Get the sign-in options and the allowances
Returns the sign-in providers, the call allowances of the plans, and whether billing is on with the monthly and yearly prices of the unlimited plan. Open: the login page and the pricing read it before a sign-in.
/v1/account/optionsReturns the sign-in providers, the call allowances of the plans, and whether billing is on with the monthly and yearly prices of the unlimited plan. Open: the login page and the pricing read it before a sign-in.
Response Body
application/json
application/json
curl -X GET "https://api.conjure.design/v1/account/options"
{
"providers": [
"github"
],
"allowances": {
"keylessMonthly": -9007199254740991,
"freeMonthly": -9007199254740991,
"unlimitedDaily": -9007199254740991
},
"billing": true,
"prices": {
"month": {
"amount": -9007199254740991,
"currency": "string",
"interval": "day",
"discount": {
"amount": -9007199254740991,
"duration": "once",
"months": -9007199254740991
}
},
"year": {
"amount": -9007199254740991,
"currency": "string",
"interval": "day",
"discount": {
"amount": -9007199254740991,
"duration": "once",
"months": -9007199254740991
}
}
}
}
{
"error": {
"code": "bad_request",
"message": "string",
"requestId": "string"
}
}
Make a key POST
Makes the account's key, or replaces it, and returns it. The key is shown this one time and the old key stops at once. Needs a session cookie (401 without one).
Open the billing portal POST
Returns the URL of Polar's customer portal, with the invoices, the payment method and the cancellation. Needs a session cookie (401 without one); 503 when the server has no billing or Polar did not answer.