Logs user into the system
curl --request POST \
--url https://app.planpoint.io/api/users/login \
--header 'Authorization: <api-key>'import requests
url = "https://app.planpoint.io/api/users/login"
headers = {"Authorization": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: '<api-key>'}};
fetch('https://app.planpoint.io/api/users/login', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.planpoint.io/api/users/login",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.planpoint.io/api/users/login"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.planpoint.io/api/users/login")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.planpoint.io/api/users/login")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"_id": "<string>",
"role": "<string>",
"username": "<string>",
"name": "<string>",
"lastName": "<string>",
"fullName": "<string>",
"phone": "<string>",
"companyName": "<string>",
"projectNameURL": "<string>",
"country": "<string>",
"address1": "<string>",
"address2": "<string>",
"city": "<string>",
"region": "<string>",
"zip": "<string>",
"token": "<string>",
"stripeAccountId": "<string>",
"stripeOnboardingDone": false,
"stripeDetailsSubmitted": false,
"experimentalFeatures": false,
"resetToken": "<string>",
"stripeCustomer": {},
"subscription": {},
"appliedTrial": false,
"projects": [
"<string>"
],
"groups": [
"<string>"
],
"administrators": [
"<string>"
],
"editors": [
"<string>"
],
"invites": [
{
"firstName": "<string>",
"lastName": "<string>",
"email": "jsmith@example.com",
"level": "<string>"
}
],
"preferences": {
"hideBrandingIcon": false,
"hideLoadingLogo": false
}
}Authentication
Login
POST
/
users
/
login
Logs user into the system
curl --request POST \
--url https://app.planpoint.io/api/users/login \
--header 'Authorization: <api-key>'import requests
url = "https://app.planpoint.io/api/users/login"
headers = {"Authorization": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: '<api-key>'}};
fetch('https://app.planpoint.io/api/users/login', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.planpoint.io/api/users/login",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.planpoint.io/api/users/login"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.planpoint.io/api/users/login")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.planpoint.io/api/users/login")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"_id": "<string>",
"role": "<string>",
"username": "<string>",
"name": "<string>",
"lastName": "<string>",
"fullName": "<string>",
"phone": "<string>",
"companyName": "<string>",
"projectNameURL": "<string>",
"country": "<string>",
"address1": "<string>",
"address2": "<string>",
"city": "<string>",
"region": "<string>",
"zip": "<string>",
"token": "<string>",
"stripeAccountId": "<string>",
"stripeOnboardingDone": false,
"stripeDetailsSubmitted": false,
"experimentalFeatures": false,
"resetToken": "<string>",
"stripeCustomer": {},
"subscription": {},
"appliedTrial": false,
"projects": [
"<string>"
],
"groups": [
"<string>"
],
"administrators": [
"<string>"
],
"editors": [
"<string>"
],
"invites": [
{
"firstName": "<string>",
"lastName": "<string>",
"email": "jsmith@example.com",
"level": "<string>"
}
],
"preferences": {
"hideBrandingIcon": false,
"hideLoadingLogo": false
}
}Step-by-Step Guide: Planpoint Login API
1. Prepare Your Request Body
You’ll need to send a JSON payload with the following fields:username: Your email address (required, must be valid email format)password: Your password
2. Set Up the HTTP Request
Configure a POST request with:- Method: POST
- URL:
https://app.planpoint.io/api/users/login - Content-Type:
application/json
3. Standard Login Flow
For regular user login, send this request body: json{ "username": "your-email@example.com", "password": "your-password" }
Example using cURL:
bash
curl --request POST \ --url https://app.planpoint.io/api/users/login \ --header 'Content-Type: application/json' \ --data '{ "username": "your-email@example.com", "password": "your-password" }'
4. Handle the Response
Success Response (200): json{ "message": "Login successful", "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." }
The response includes:
access_token: JWT token for authenticating future API requests- HTTP-only cookies are automatically set in your browser:
planpoint: Access token (expires in 1 day for regular users, 90 days for Zapier)planpointRefresh: Refresh token (expires in 7 days, not set for Zapier users)
- 400: Invalid request body (username not an email, etc.)
- 401: User not found, incorrect credentials, or unauthorized
- 403: Not allowed (for impersonation attempts)
- 405: Method not allowed (if not using POST)
- 500: Server error
5. Use the Access Token
For subsequent API requests, use theaccess_token from the response in your Authorization header:
bash
Authorization: Bearer YOUR_ACCESS_TOKENQuery Parameters
Response
Successful operation