# Create an upload link (/th/growsocmed/docs/api-reference/media/create-upload-link)

A link that uploads files into the media library without an API key (for AI agents with a terminal): POST multipart field `file` (≤ 100 MB) or PUT the raw bytes with ?name= (any size up to the plan's limit). It works 30 minutes from its last use, at most 6 hours.

POST /media/upload-links

```json
{
  "tags": [
    "Media"
  ],
  "summary": "Create an upload link",
  "responses": {
    "201": {
      "description": "Created",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "upload_url": {
                "type": "string"
              },
              "expires_at": {
                "type": "string"
              },
              "curl": {
                "type": "string"
              }
            },
            "required": [
              "upload_url",
              "expires_at",
              "curl"
            ]
          }
        }
      }
    }
  },
  "operationId": "create-upload-link",
  "description": "A link that uploads files into the media library without an API key (for AI agents with a terminal): POST multipart field `file` (≤ 100 MB) or PUT the raw bytes with ?name= (any size up to the plan's limit). It works 30 minutes from its last use, at most 6 hours."
}
```