public function url($endpoint, $schema = null, $doc_id = null, $file_id = null)
    {
        return sprintf('api/v%d/%s', $this->version, $this->endpoint(
            $endpoint,
            $schema,
            $doc_id,
            $file_id
        ));
    }