INNER CODE UNIT · Python

get_render_headers

phasehq/console · backend/api/utils/syncing/render/main.py:29

def get_render_headers(credential_id):
    """
    Prepare headers for Render API requests with the necessary authentication token.
    """
    credentials = get_credentials(credential_id)
    api_key = credentials.get("api_key")

    return {
        "Authorization": f"Bearer {api_key}",
        "Accept": "application/json",
        "Content-Type": "application/json",
    }


def list_render_services(credential_id):
    """
    List all Render services available under the account associated with the API key.
    Handles pagination using the 'cursor' field.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…