Skip to main content
POST
Send a new document
This replaces the document of your real identity verification.

Authorizations

x-api-key
string
header
required

Your ps_ API key

Body

application/json
document
string
required

The document file as a base64 data URI: data:<type>;base64,<content>, encoded without line breaks. Types: application/pdf, image/jpeg, image/png, image/webp; at most 10 MB of file (about 14 MB once encoded). For a CNPJ: the CNPJ card (Cartão CNPJ), the articles of incorporation or the registration proof. For a CPF: an ID card (RG), a driver license (CNH) or the CPF registration proof, with the number readable.

Example:

"data:application/pdf;base64,JVBERi0xLjQKJcOkw7zDtsOfCg=="

Response

Document replaced; the verification state

status
enum<string>

NONE (never started), PENDING_CONTACT (waiting for the contact codes and, if document.status says so, a better document), IN_REVIEW (finished, waiting for a person — purchase allowed), APPROVED (verified — purchase allowed), NEEDS_DOCUMENT (the reviewer asked for another document) or REJECTED (final — talk to support). The phone_line.verification_updated webhook uses the same values for the last four.

Available options:
NONE,
PENDING_CONTACT,
IN_REVIEW,
APPROVED,
NEEDS_DOCUMENT,
REJECTED
canPurchase
boolean

Whether POST /v1/phone-lines is allowed now: true for APPROVED and IN_REVIEW.

verification
object | null

null for NONE.