How to Get Gmail API Credentials (credentials.json) | Step-by-Step Guide

Опубликовано: 29 Июнь 2026
на канале: CodeWithAI
163
1

🔗 Important Links

👉 Watch the 1st Short of the series:    • Build Gmail AI 🤖📩 | Part 1: Introduction  

👉 Open Google Cloud Console: https://console.cloud.google.com

Learn how to get the credentials.json file required to connect your project with Gmail using the Gmail API 📩

In this step-by-step tutorial, I’ll show you how to set up Google Cloud, enable the Gmail API, and download your credentials file without confusion.

This is an essential step if you’re building projects like:
• Gmail automation tools 📩
• AI email assistants 🤖
• Python or AI-based projects

🚀 What You’ll Learn

• How to create a project in Google Cloud
• How to enable Gmail API
• How to create OAuth credentials
• How to download the credentials.json file
• How to use it in your project

⚠️ Important Notes

• Never share your credentials.json file
• Keep your API keys secure
• Follow all steps carefully

📢 Series Info

This video is part of my “Build Gmail AI” series where we create an AI that can send, read, and reply to emails automatically.

🔥 Subscribe for more AI tools, coding tutorials, and automation projects.

⏱️ TIMESTAMPS

0:00 Intro
0:15 Open Google Cloud Console
0:40 Create New Project
1:20 Select Project
1:40 Enable Gmail API
2:20 Go to Credentials
2:40 Create OAuth Client ID
3:20 Configure Consent Screen
4:00 Select Desktop App
4:30 Create Credentials
5:00 Download credentials.json
5:30 Where to place the file
6:00 Outro