Skip to main content
POST
Compress PDF

Request contract

  • Method and path: POST /apis/v1/pdf-co/pdf-compress
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/pdf-co/pdf-compress
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

Usage-based pricing. Default request estimate: $0.0103 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
url
string
required

URL of the source PDF file to compress.

colorQuality
integer

JPEG quality for color and grayscale images from 1 to 100.

Required range: 1 <= x <= 100
compressionLevel
enum<string>

Ready-to-use PDF compression preset.

Available options:
low,
medium,
high,
aggressive
config
object

Partial advanced compression configuration.

expiration
integer

Number of minutes before the temporary output link expires.

name
string

File name for the generated PDF.

password
string

Password for opening a protected source PDF.

Response

Tool result data

error
boolean
required
status
integer
required
credits
integer
duration
integer
name
string
pageCount
integer
remainingCredits
integer
url
string