Memverifikasi bahwa klien iOS adalah perangkat iOS sungguhan. Jika permintaan valid, tanda terima akan dikirim dalam respons dan secret akan dikirim melalui Apple Push Notification Service. Klien harus mengirim keduanya kembali ke Identity Platform API tertentu dalam panggilan berikutnya (misalnya, /accounts:sendVerificationCode), untuk memverifikasi klien. ID paket diperlukan di header permintaan sebagai x-ios-bundle-identifier.
Kunci API diperlukan dalam permintaan untuk mengidentifikasi project Google Cloud.
Permintaan HTTP
POST https://identitytoolkit.googleapis.com/v1/accounts:verifyIosClient
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-03-04 UTC."],[[["\u003cp\u003eThis API verifies if an iOS client is a real device, sending a receipt in the response and a secret via Apple Push Notification Service upon successful validation.\u003c/p\u003e\n"],["\u003cp\u003eThe client must provide its bundle ID in the request header (\u003ccode\u003ex-ios-bundle-identifier\u003c/code\u003e) and an API key for Google Cloud project identification.\u003c/p\u003e\n"],["\u003cp\u003eThe request body requires an \u003ccode\u003eappToken\u003c/code\u003e (a device token from APNs) and an \u003ccode\u003eisSandbox\u003c/code\u003e flag to indicate the environment type (sandbox or production).\u003c/p\u003e\n"],["\u003cp\u003eThe response body contains a \u003ccode\u003ereceipt\u003c/code\u003e confirming the app token's validation and a \u003ccode\u003esuggestedTimeout\u003c/code\u003e indicating the recommended waiting time for the push notification.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization requires either the \u003ccode\u003ehttps://www.googleapis.com/auth/identitytoolkit\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,["# Method: accounts.verifyIosClient\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n - [JSON representation](#body.VerifyIosClientResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nVerifies an iOS client is a real iOS device. If the request is valid, a receipt will be sent in the response and a secret will be sent via Apple Push Notification Service. The client should send both of them back to certain Identity Platform APIs in a later call (for example, /accounts:sendVerificationCode), in order to verify the client. The bundle ID is required in the request header as `x-ios-bundle-identifier`.\n\nAn [API key](https://cloud.google.com/docs/authentication/api-keys) is required in the request in order to identify the Google Cloud project.\n\n### HTTP request\n\n`POST https://identitytoolkit.googleapis.com/v1/accounts:verifyIosClient`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Request body\n\nThe request body contains data with the following structure:\n\n### Response body\n\nResponse message for accounts.verifyIosClient.\n\nIf successful, the response body contains data with the following structure:\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/identitytoolkit`\n- `\n https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp)."]]