Response Type
Learn about different response types supported in Orshot API and how you can use them
The responseType
parameter defines the type of output for the rendered content. Available options differ based on the selected template; however, the general available options are:
url
: Returns a URL where the rendered output is stored on Orshot.base64
: Returns a string containing the base64-encoded version of the rendered content.binary
: Returns the binary content of the file, allowing users to transform and use it as needed.
Key Points
- Type: String
- Purpose: Specifies the output format type, not to be confused with the file format specified by
responseFormat
. - Usage: Choose the output type that matches your application's requirements.