+44 20 881 67284

38,593,958 Royalty Free Stock Photos

How to use the Fotolia API

Method: user/loginUser

This method allows you to create an authenticated session to be able to use methods which need authentication


This method does requires authentification using login/password. This method is not available for Partner API. Business API can only authenticate under their own fotolia account. Developer API can authenticate under any fotolia account.

HTTP method

This method is called with HTTP method POST.


Argument Type Element (array) Valid Values Default Value Detail
login string existing login required User Login
pass string password corresponding to login required User Password

Returned Values

Element (path) Name Type Description
/ session_token string authenticated session id (needed for methods needed authentication)

Example Query

POST http://API_KEY@api.fotolia.com/Rest/1/user/loginUser


Example Response


Error Codes

001: Service currently unavailable
The requested service is temporarily unavailable.
002: Failed to parse request
The request could not be parsed.
010: Missing API Key
The API key passed is missing.
011: Invalid API Key
The API key passed is not valid or has expired.
031: Invalid Method
This method does not exist in the method list.
032: Method not Available
This method is not available for this API Key.
4000: Login Failed
login and password does not match or member not found.
4001: Invalid User
This user has no permission to login / User has been deleted.
4002: Bad Login or Password
The login or password sent is not correct (i.e. : too long, too short, bad caracters ...).