Upload API endpoint.