Authentication API Technical Reference
The Authentication API accepts a user email address and password and returns a user session token to use with other API endpoints (such as the Types API).
The endpoint URL for the Authentication API is https://auth.prismic.io/login
and the method is POST.
In your request headers, set Content-Type
to application/json
.
In the request body, include a email and password properties, like so:
Copy
{
"email": "john.doe@your-website.com",
"password": "yourPassword"
}
If the request is successful, you will receive a 200
response containing the user session token.
Can't find what you're looking for?
Need technical Support? Spot an error in the documentation? Get in touch with us on our Community Forum.