Piloty API
  • Introduction
  • 🔓Authentication
  • 🔭Scopes and Roles
  • ⏲️Rate limits
  • 📂Pagination
  • ⁉️Errors and Status
  • 🏢COMPANIES API
    • Companies
      • GET : Companies by media
      • GET : Retrieve Company
      • POST : Create company
      • PATCH : Update company
    • Company 's fields
      • GET : List Sectors
      • GET : List Sizes
  • 💼JOBS API
    • Jobs
      • GET : Jobs by media
      • GET : Retrieve job
      • GET : Jobs opened by media
      • GET : Retrieve job opened
      • POST : Create job
      • PATCH : Update job
    • Job's fields
      • GET : List Contracts
      • GET : List Experiences
      • GET : List Educations
      • GET : List Remote policies
      • GET : List Worktimes
      • GET : List Job Categories
  • 👤USERS API
    • Users
      • GET : Users by media
  • 🧑‍💼CANDIDATES API
    • Candidates
      • GET : User candidates by media
      • GET : Job alerts
      • GET : Favoris
    • Opportunities
      • POST : Job applications - v2
      • GET : Job applications
      • 🛑Deprecated - POST : Job applications - v1
  • 📕Changelog
Powered by GitBook
On this page
  1. USERS API
  2. Users

GET : Users by media

This endpoint lets you retrieve every users for a media.

This endpoint requires:

  • media_admin or brand_admin roles

  • r_users scope

Media users

GET https://api-piloty.fr/users

Query Parameters

Name
Type
Description

media-public-id*

String

Public id of the media

company-public-id

String

Public id of the company

email

String

Email of the user

created_after

ISO8601-Compatible Date

Show users created after this date

created_before

ISO8601-Compatible Date

Show users created before this date

page

Number

Page to retrieve (default=1)

limit

Number

Amount of items per page (default=500)

Response examples

Request

https://api-piloty.fr/users?media-public-id=[authorized_media]

Response

{
    "total": 121,
    "totalPages": 7,
    "next-page":"CIMjGgIQABoJKaZ3asmVAQAAIho6GDY3ZTFhNDc4ZTc0ODNjMWI0ZDUyOWE0Yg==",
    "users": [
        {
            "company": {
                "public_id": "some-company",
                "name": "Some Company",
                "state": "published"
            },
            "firstname": "John",
            "lastname": "Doe",
            "email": "johndoe@domain.com",
            "picture": null,
            "phone_number": "+33000000000",
            "createdAt": "2025-02-13T15:49:32.047Z"
        },
        {...}
    ]
}

Request

https://api-piloty.fr/users?media-public-id=[unauthorized_media]

Response

{
    "status": 401,
    "error": "unauthorized-limitation"
}

Request

https://api-piloty.fr/users

Response

{
    "status": 400,
    "error": "missing-media-public-id"
}
Request example
curl    -X GET -G "https://api-piloty.fr/users?media-public-id=acme_media \
        -H "Authorization: Bearer PILOTY_TOKEN"

PreviousUsersNextCandidates

Last updated 1 month ago

👤