---
agentTools:
  projectIndex: https://troops.readme.io/llms.txt
---

# List of the mission contracts

List of the mission contracts

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Introduction",
    "version": "1.0.0",
    "description": "The Troops Integration API is organized around\n[REST](https://en.wikipedia.org/wiki/Representational_state_transfer). It\nallows you to query and manipulate the following resources within your TEA\ntree:\n\n- Candidates and their related assets.\n- TEAs\n- Certain references:\n  - Business sectors\n  - Countries\n  - Jobs\n- Paychecks\n- Evolia syncing\n"
  },
  "paths": {
    "/api/v1/integrations/contracts": {
      "get": {
        "tags": [
          "Mission contracts"
        ],
        "description": "List of the mission contracts",
        "parameters": [
          {
            "$ref": "#/components/parameters/Limit"
          },
          {
            "$ref": "#/components/parameters/Before"
          },
          {
            "$ref": "#/components/parameters/After"
          },
          {
            "in": "query",
            "name": "filters",
            "description": "Array of filters",
            "style": "deepObject",
            "explode": true,
            "schema": {
              "type": "object",
              "properties": {
                "agencies": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/UUID"
                  }
                },
                "condition": {
                  "type": "string",
                  "enum": [
                    "refused",
                    "committed",
                    "terminated",
                    "pool",
                    "proposal_sent"
                  ]
                },
                "mission": {
                  "$ref": "#/components/schemas/UUID"
                },
                "clients": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/UUID"
                  }
                },
                "is_work_contract_signed_by_agency": {
                  "type": "boolean"
                },
                "is_work_contract_signed_by_candidate": {
                  "type": "boolean"
                },
                "is_business_contract_signed_by_agency": {
                  "type": "boolean"
                },
                "is_business_contract_signed_by_client": {
                  "type": "boolean"
                },
                "starting_at_period": {
                  "type": "object",
                  "properties": {
                    "date_from": {
                      "oneOf": [
                        {
                          "$ref": "#/components/schemas/Date"
                        },
                        {
                          "$ref": "#/components/schemas/NullValue"
                        }
                      ],
                      "example": "2022-02-21T00:00:00.000Z"
                    },
                    "date_to": {
                      "oneOf": [
                        {
                          "$ref": "#/components/schemas/Date"
                        },
                        {
                          "$ref": "#/components/schemas/NullValue"
                        }
                      ],
                      "example": "2022-02-21T00:00:00.000Z"
                    }
                  }
                }
              }
            }
          },
          {
            "in": "query",
            "name": "sorting",
            "description": "Sorting",
            "style": "deepObject",
            "explode": true,
            "schema": {
              "type": "object",
              "properties": {
                "created_at": {
                  "type": "string",
                  "enum": [
                    "asc",
                    "desc"
                  ]
                },
                "starting_at": {
                  "type": "string",
                  "enum": [
                    "asc",
                    "desc"
                  ]
                },
                "ending_at": {
                  "type": "string",
                  "enum": [
                    "asc",
                    "desc"
                  ]
                }
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned in case request was handled successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "results": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "$ref": "#/components/schemas/UUID"
                          },
                          "created_at": {
                            "$ref": "#/components/schemas/Timestamp"
                          },
                          "starting_at": {
                            "$ref": "#/components/schemas/Timestamp"
                          },
                          "ending_at": {
                            "$ref": "#/components/schemas/TimestampNullable"
                          },
                          "initial_ending_at": {
                            "$ref": "#/components/schemas/TimestampNullable"
                          },
                          "hourly_rate": {
                            "type": "number",
                            "format": "float",
                            "example": 11.11
                          },
                          "employment_type": {
                            "$ref": "#/components/schemas/EmploymentContractType"
                          },
                          "address": {
                            "$ref": "#/components/schemas/AddressResponse"
                          },
                          "candidate": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "$ref": "#/components/schemas/UUID"
                              },
                              "first_name": {
                                "$ref": "#/components/schemas/FirstName"
                              },
                              "last_name": {
                                "$ref": "#/components/schemas/LastName"
                              },
                              "email": {
                                "$ref": "#/components/schemas/Email"
                              },
                              "phone": {
                                "$ref": "#/components/schemas/Phone"
                              },
                              "external_id": {
                                "type": "string",
                                "nullable": true,
                                "example": "3bec819e-"
                              },
                              "ssn": {
                                "type": "string",
                                "example": 100076912338145
                              }
                            }
                          },
                          "agency": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "$ref": "#/components/schemas/UUID"
                              },
                              "title": {
                                "type": "string",
                                "example": "Job Interim"
                              }
                            }
                          },
                          "client": {
                            "nullable": true,
                            "type": "object",
                            "properties": {
                              "id": {
                                "$ref": "#/components/schemas/UUID"
                              },
                              "title": {
                                "type": "string",
                                "example": "Idumo"
                              }
                            }
                          }
                        }
                      }
                    },
                    "pagination": {
                      "$ref": "#/components/schemas/PaginationCursorBased"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        },
        "summary": "List of the mission contracts"
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "description": "The entire API is authenticated, so to use it you will require an API\nkey. To acquire one, please send a request to your account manager at\nTroops or to help@troops.fr.\n\nWhen making requests, you need to specify the API key using the Bearer\nscheme in the Authorization header, e.g. `Authorization: Bearer\nthis-is-my-secret-token`.\n\nYour API keys carry many privileges, so be sure to keep them secure! Do\nnot share your secret API keys in publicly accessible areas such as\nGitHub, client-side code, and so forth.\n\nAll API requests must be made over HTTPS. Calls made over plain HTTP\nwill fail. API requests without authentication will also fail.\n"
      }
    },
    "schemas": {
      "UUID": {
        "type": "string",
        "format": "uuid",
        "description": "UUID",
        "example": "123e4567-e89b-12d3-a456-426655440000"
      },
      "Timestamp": {
        "type": "integer",
        "description": "timestamp",
        "example": 1558202400
      },
      "FirstName": {
        "type": "string",
        "maxLength": 150,
        "example": "John",
        "description": "First name of the individual"
      },
      "LastName": {
        "type": "string",
        "maxLength": 150,
        "example": "Doe",
        "description": "Last name of the individual"
      },
      "Email": {
        "type": "string",
        "format": "email",
        "example": "some@troops.online"
      },
      "Phone": {
        "type": "string",
        "maxLength": 30,
        "example": "+498963648018"
      },
      "NullValue": {
        "nullable": true,
        "not": {
          "anyOf": [
            {
              "type": "string",
              "nullable": true
            },
            {
              "type": "number",
              "nullable": true
            },
            {
              "type": "boolean"
            },
            {
              "type": "object"
            },
            {
              "type": "array",
              "items": {}
            }
          ]
        }
      },
      "PaginationCursorBased": {
        "type": "object",
        "properties": {
          "total": {
            "type": "integer",
            "description": "Total amount of entries",
            "example": 30
          },
          "next": {
            "type": "string",
            "nullable": true,
            "description": "Cursor for the next page",
            "example": "TQ5ZjgtOTJiNC1kZjc3ODcwMmQ4ZjIiLCIxMCI="
          },
          "prev": {
            "type": "string",
            "nullable": true,
            "description": "Cursor for the previous page",
            "example": "FcvbxbFpmsD4fKI2vsWpxDcUJypIAvIk139A=="
          }
        }
      },
      "Date": {
        "type": "string",
        "format": "date",
        "example": "2021-07-21T00:00:00.000Z"
      },
      "TimestampNullable": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Timestamp"
          },
          {
            "type": "integer",
            "nullable": true
          }
        ]
      },
      "AddressResponse": {
        "type": "object",
        "properties": {
          "city": {
            "type": "string",
            "example": "Lyon"
          },
          "zip_code": {
            "type": "string",
            "nullable": true,
            "example": 69002
          },
          "address": {
            "type": "string",
            "example": "63 Rue de la République"
          },
          "country_id": {
            "$ref": "#/components/schemas/UUID"
          },
          "latitude": {
            "type": "number",
            "format": "float",
            "example": 45.7596796
          },
          "longitude": {
            "type": "number",
            "format": "float",
            "example": 45.7596796
          },
          "full_address": {
            "type": "string",
            "example": "63 Rue de la République, 69002 Lyon, France"
          },
          "precision": {
            "type": "string",
            "nullable": true,
            "example": "apt. 12"
          },
          "is_manual": {
            "type": "boolean"
          }
        }
      },
      "EmploymentContractType": {
        "type": "string",
        "enum": [
          "ctt",
          "cdd",
          "cdi",
          "cdii"
        ]
      }
    },
    "parameters": {
      "Limit": {
        "in": "query",
        "name": "limit",
        "description": "Number of entries per page",
        "example": 10,
        "schema": {
          "type": "integer",
          "minimum": 0
        }
      },
      "Before": {
        "in": "query",
        "name": "before",
        "description": "Cursor to limit the results at the end",
        "example": "86a9875e7ef94c2585fc==",
        "schema": {
          "type": "string"
        }
      },
      "After": {
        "in": "query",
        "name": "after",
        "description": "Cursor to limit the results at the beginning",
        "example": "86a9875e7ef94c2585fc==",
        "schema": {
          "type": "string"
        }
      }
    },
    "responses": {
      "Unauthorized": {
        "description": "Returned in case authentication is lacking, invalid or expired"
      },
      "NotFound": {
        "description": "Returned in case the requested item can not be found"
      }
    }
  },
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "servers": [
    {
      "url": "https://api-staging.troops.fr",
      "description": "PreProduction (Staging) server"
    },
    {
      "url": "https://api.troops.fr",
      "description": "Production server"
    },
    {
      "url": "https://api-dev.troops.online",
      "description": "Development server"
    },
    {
      "url": "https://api-{envID}.troops.online",
      "description": "Development server (Dynamic feature env)",
      "variables": {
        "envID": {
          "default": "dev",
          "description": "dev, r-********, 1202004111967626"
        }
      }
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 101,
      "1": 184,
      "2": 241,
      "3": 90,
      "4": 97,
      "5": 249,
      "6": 184,
      "7": 0,
      "8": 76,
      "9": 125,
      "10": 22,
      "11": 209
    }
  }
}
```