Retrieve Runway API account configuration for email

August 8, 2024

Table of contents

  1. Request Headers
  2. Responses
  3. Model
  4. Examples
  5. Try It

https://api.useapi.net/v1/runwayml/accounts/email

The email value should correspond to an account configured previously via a POST /accounts/email request.

Request Headers
Authorization: Bearer {API token}
Content-Type: application/json
Responses
  • 201 Created

    {
      "email": "user-1@example.com",
      "password": "<password>",
      "maxJobs": 5,
      "jwt": {
        "token": "<token>",
        "exp": 1734858598.864,
        "iat": 1732266598.864,
        "id": 123456,
      }        
    }
    
  • 401 Unauthorized

    {
      "error": "Unauthorized",
      "code": 401
    }
    
  • 404 Not Found

    Configuration not found. To create configuration use POST /accounts/email.

Model
{ // TypeScript, all fields are optional
  email: string,
  password: string,
  maxJobs: number,
  jwt: {
    token: string,
    exp: number,
    iat: number,
    id: number,
  }
}
Examples
  • curl https://api.useapi.net/v1/runwayml/accounts/<email> \
       -H "Accept: application/json" \
       -H "Authorization: Bearer …" 
    
  • const token = "API token";
    const email = "Previously configured email"; 
    const apiUrl = `https://api.useapi.net/v1/runwayml/accounts/${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/accounts/{email}"
    headers = {
        "Content-Type": "application/json", 
        "Authorization" : f"Bearer {token}"
    }
    response = requests.get(apiUrl, headers=headers)
    print(response, response.json())
    
Try It