Vast.ai API
Instances

Retrieve SSH Connection Details

1min
GET
https://console.vast.ai/api/v0/instances/{id}/

Retrieves the SSH connection details for a specific instance, including the IP address and port.

CLI Usage: vastai ssh-url ID

Authentication
BearerAuth
Path Parameters
id
*
Responses
200
Success response with SSH connection details
ipaddr
port
400
Bad Request - Invalid instance ID
success
error
msg
401
Unauthorized - Invalid or missing authentication
success
error
msg
404
Instance not found
success
error
msg