Create App Password setup links
const url = 'https://example.com/api/v1/auth/app-passwords/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/profiles';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"password":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/auth/app-passwords/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/profiles \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "password": "example" }'Route: /api/v1/auth/app-passwords/{id}/profiles. Inputs: id. A recent account assertion is required. Do not automatically replay this operation after an uncertain result.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”App password id
Request Bodyrequired
Section titled “Request Bodyrequired”object
The secret is sent only over the authenticated session and is never written to Security state or logs.
Examplegenerated
{ "password": "example"}Responses
Section titled “Responses”object
Unix time when both links expire.
A separate one-use link for the Mac download action.
Non-secret Mail host and TLS ports for manual device setup (#486). Present only when this credential grants Mail read access.
One-use link encoded in the iPhone and iPad QR code.
Signing status for the exact profile bytes behind both links.
object
The company name from the Developer ID common name, with its team ID removed.
True when the certificate and chain are currently valid.
The earliest expiry time in the signer certificate chain, in Unix seconds.
True when the earliest expiry is within 30 days.
Examplegenerated
{ "expires_at": 1, "imap_port": 1, "mac_url": "example", "mail_host": "example", "mobile_url": "example", "profile_signing": { "display_name": "example", "enabled": true, "expires_at": 1, "expires_soon": true }, "submission_port": 1}object
Examplegenerated
{ "code": "example", "message": "example"}object
Examplegenerated
{ "code": "example", "message": "example"}