APIYard
Back to APIs
AuthAPI KeyFree tier

Firebase Auth

Add sign-in with email/password, phone, Google, Apple, and more to your app using Firebase Authentication's REST API.

Base URL

https://identitytoolkit.googleapis.com/v1
emailsocial loginphone authGoogleanonymous

Endpoints

POST/accounts:signUp

Create a new user with email and password.

const response = await fetch("https://identitytoolkit.googleapis.com/v1/accounts:signUp?key=YOUR_API_KEY", {
  method: "POST",
  headers: {
  "Content-Type": "application/json",
  "X-API-Key": "YOUR_API_KEY"
  },
  body: JSON.stringify({
  "email": "jane@example.com",
  "password": "securepassword",
  "returnSecureToken": true
})
});

const data = await response.json();
console.log(data);

Response Preview

{
  "idToken": "eyJhbGciOi...",
  "email": "jane@example.com",
  "refreshToken": "AMf-vBzb...",
  "expiresIn": "3600",
  "localId": "tRcfmLH7o..."
}