Skip to main content
POST
/
twitter
/
upload_image
cURL
curl --request POST \
  --url https://api.twitterapi.io/twitter/upload_image \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "auth_session": "<string>",
  "image_url": "<string>",
  "proxy": "<string>"
}'
{
  "status": "<string>",
  "msg": "<string>",
  "media_id": "<string>"
}

Authorizations

X-API-Key
string
header
required

Body

application/json
auth_session
string
required

The session of the login. It's returned by /twitter/login_by_2fa

proxy
string
required

The proxy to use.Please use high-quality residential proxies and avoid free proxies.Required.Example: http://username:password@ip:port

image_url
string

The url of the image to upload

Response

Upload image response

status
string

Status of the request.success or error

msg
string

Message of the request.error message

media_id
string

The id of the uploaded image

I