Retrieve the Runway account features
August 8, 2024
Table of contents
Retrieve account credits information and other details.
https://api.useapi.net/v1/runwayml/features/?…
Request Headers
Authorization: Bearer {API token}
Content-Type: application/json
API token
is required, see Setup useapi.net for details.
Query Parameters
email
is optional when only one account configured. However, if you have multiple accounts configured, this parameter becomes required.
Responses
-
The response below has been omitted for brevity to include only essential fields, the live endpoint will return a much larger response.
{ "permitted": { "storageGB": 500, "numPlanCredits": 2250 }, "used": { "numPlanCredits": 1315 } }
-
{ "error": "<Error message>", "code": 400 }
-
{ "error": "Unauthorized", "code": 401 }
Model
The model below has been omitted for brevity to include only essential fields, the live endpoint will return many more fields.
{ // TypeScript, all fields are optional
permitted: {
storageGB: number,
numPlanCredits: number
},
used: {
numPlanCredits: number
}
}
Examples
-
curl "https://api.useapi.net/v1/runwayml/features/" \ -H "Accept: application/json" \ -H "Authorization: Bearer …"
-
const token = "API token"; const email = "Previously configured email"; const apiUrl = `https://api.useapi.net/v1/runwayml/features/?email=${email}`; const response = await fetch(apiUrl, { headers: { "Authorization": `Bearer ${token}`, }, }); const result = await response.json(); console.log("response", {response, result});
-
import requests token = "API token" email = "Previously configured email" apiUrl = f"https://api.useapi.net/v1/runwayml/features/?email={email}" headers = { "Content-Type": "application/json", "Authorization" : f"Bearer {token}" } response = requests.get(apiUrl, headers=headers) print(response, response.json())