Discussions

Ask a Question
ANSWERED

Personio and Ms365 integration.

I am trying to find a way to integrate Personio with Ms 365. Is there any way, when data of an employee is added in Personio, the data is automatically updated in ms 365? I want less manual work.
ANSWERED

Application Document Upload Mimetype

Hej there, we're trying to upload some documents to the application api and always getting the problem, that the files inside the personio backend does'nt get a correct preview neither can be downloaded correctly. It seems that the mimetype of the uploaded files get lost, so it's always "text/plain". We're using PHP with guzzle to request the api and having a nearly similar code like the api documentation example: ``` <?php require_once('vendor/autoload.php'); $client = new \GuzzleHttp\Client(); $response = $client->request('POST', 'https://api.personio.de/v1/recruiting/applications/documents', [ 'multipart' => [ [ 'name' => 'file', 'filename' => 'gitlab-icon-rgb.png', 'contents' => 'data:image/png;name=gitlab-icon-rgb.png;base64,iVBORw0KGgoAAAANSUhEUg....', 'headers' => [ 'Content-Type' => 'image/png' ] ] ] 'headers' => [ 'Accept' => 'application/json', 'Authorization' => 'Bearer XXX', 'X-Company-ID' => 'XXX', ], ]); echo $response->getBody(); `` When sending this autogenerated code to the api, I'm getting the following result: ``` { "extension": "txt", "mimetype": "text/plain", "original_filename": "gitlab-icon-rgb.png", "uuid": "f198a250-c093-4d07-bbc0-8e9b0cbdf05f", "size": 21187 } ``` So the api is detecting a "text/plain" mimetype, but I was uploading a "image/png" mimetype. What is wrong with the request?
ANSWERED

Random 403/404 errors when using API through Proxy

Hello there, I'm having trouble with the documents endpoint of the Personio Recruiting API. I'm receiving random and unpredictable 403 and 404 errors; and occasionally it just works. I'm using an Nginx Reverse Proxy to hide the credentials from the general public. Other than that, the setup is pretty basic. The 403 error contains the following message: 'xyz' not a valid key=value pair (missing equal-sign) in Authorization header: 'Bearer xyz'.". But the header is set correctly. This is the configuration of the proxy: location /documents/upload { proxy_pass https://api.personio.de/v1/recruiting/applications/documents; proxy_set_header Authorization "Bearer xyz"; proxy_set_header X-Company-ID 123; proxy_hide_header Strict-Transport-Security; proxy_hide_header Referrer-Policy; proxy_hide_header Content-Security-Policy; } What could be the issue here? Are there general issues with the use of proxies and your API? Thanks in advance.
ANSWERED

Salary and work time schedule history

Personio models changes to salary and work time schedule over time, are there any plans to make it possible to retrieve this information via the api. We would like to be personio to be the source of truth for personell cost and to make this possible we would also need historic info not just the current salary.
ANSWERED

Employee Data API - Token

Hey there, I hope you are doing well. In the Developer Hub we state the following with respect to the token for the API: "The credentials allow you to perform a request against the /auth endpoint to retrieve an initial authentication token. After each request a new token is generated and sent back to the user in the Authorization header. You can use this token to make the next request. With every new call the previous token is invalidated." The question is: Can the customer ignore the token sent back to them and instead request a new one via the auth function? Would this work to retrieve the data?
ANSWERED

Where can I find / generate bearer token?

Hi, I am trying to integrate attendance from developers hub and to send a POST request I need the bearer token, How can I create one?
ANSWERED

/company/attendances -- POST request not working - Given Data Invalid

### First Attempt ### - The demo python code is not working. - The Try it form ist not working: --> Response: {"success":false"error":{"code":0"message":"The given data was invalid.""errors":{"attendances":["Bitte geben Sie attendances ein, um fortzufahren." ]}}} ### Second Attempt ### Applied your JSON example structure using my credentials/ids in my code: { "attendances": [ { "employee": 12345, "date": "2018-09-05", "start_time": "08:00", "end_time": "11:00", "break": 15, "comment": "Some comment" }, { "employee": 12345, "date": "2018-09-06", "start_time": "09:00", "end_time": "18:00", "break": 30, "comment": "Another comment" } ] } --> Response:: {'success': False, 'error': {'code': 0, 'message': 'The given data was invalid.', 'errors': {'attendances': ['The attendances must be an array.']}}} By the way: employee is defined as string in your try-it field and python code, but unsigned integer below in the model description. What is right? What is the right way to send this POST request, please? Thanks in advance for a quick feedback
ANSWERED

Zapier Integration

Hello everybody, did someone manage to create a Zapier Integration for the Personio API? Greetings, Michael
ANSWERED

422 error /v1/recruiting/applications/documents

Hey, I am trying to add a pdf file via api https://api.personio.de/v1/recruiting/applications/documents . And every other time I get this status "Something is wrong with the request body or the attachments" . Can you tell me what validations the file goes through for such an error?
ANSWERED

Change the API results language

Currently I'm getting all attributes labels in EN, even if DE is set up for the account. How can I change the language, preferrably per request?