> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.futurejobs.ai/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.futurejobs.ai/_mcp/server.

# Get Session Details

GET https://prod.api.futurejobs.ai/api/v1/wl/sourcing-session/

`GET /sourcing-session/:sessionId`

Returns full details of a sourcing session: title, JD, queries, current search status, and matched-profile counts.

## Path Parameters

| Name | Type | Description |
| --- | --- | --- |
| sessionId | string | Session ObjectId |

## Headers

| Key | Value |
| --- | --- |
| x-fj-api-key | fjk_ |

## Response (200)

``` json
{
  "statusCode": 200,
  "data": {
    "session": {
      "_id": "<SESSION_ID>",
      "sessionTitle": ".NET Developer",
      "profileMatchingStatus": "done",
    }
  },
  "message": "Session fetched successfully",
  "status": "SUCCESS"
}

 ```

`profileMatchingStatus` values: `processing` → initial search running · `fetching_more` → fetch-more in progress · `done` → results ready.

## cURL

Replace `fjk_YOUR_API_KEY_HERE` and , then paste and run:

``` bash
curl "https://prod.api.futurejobs.ai/api/v1/wl/sourcing-session/<SESSION_ID>" \
  -H "x-fj-api-key: fjk_YOUR_API_KEY_HERE"

 ```

## Errors

- `401 Unauthorized` — invalid API key.
    
- `404 Not Found` — session does not exist or is outside the API key's workspace.

Reference: https://docs.futurejobs.ai/fj-sourcing-ap-is/sourcing-session/get-session-details

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: FJ Sourcing APIs
  version: 1.0.0
paths:
  /api/v1/wl/sourcing-session/:
    get:
      operationId: get-session-details
      summary: Get Session Details
      description: >-
        `GET /sourcing-session/:sessionId`


        Returns full details of a sourcing session: title, JD, queries, current
        search status, and matched-profile counts.


        ## Path Parameters


        | Name | Type | Description |

        | --- | --- | --- |

        | sessionId | string | Session ObjectId |


        ## Headers


        | Key | Value |

        | --- | --- |

        | x-fj-api-key | fjk_ |


        ## Response (200)


        ``` json

        {
          "statusCode": 200,
          "data": {
            "session": {
              "_id": "<SESSION_ID>",
              "sessionTitle": ".NET Developer",
              "profileMatchingStatus": "done",
            }
          },
          "message": "Session fetched successfully",
          "status": "SUCCESS"
        }

         ```

        `profileMatchingStatus` values: `processing` → initial search running ·
        `fetching_more` → fetch-more in progress · `done` → results ready.


        ## cURL


        Replace `fjk_YOUR_API_KEY_HERE` and , then paste and run:


        ``` bash

        curl
        "https://prod.api.futurejobs.ai/api/v1/wl/sourcing-session/<SESSION_ID>"
        \
          -H "x-fj-api-key: fjk_YOUR_API_KEY_HERE"

         ```

        ## Errors


        - `401 Unauthorized` — invalid API key.
            
        - `404 Not Found` — session does not exist or is outside the API key's
        workspace.
      tags:
        - subpackage_sourcingSession
      parameters:
        - name: x-fj-api-key
          in: header
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/Sourcing Session_Get Session
                  Details_Response_200
servers:
  - url: https://prod.api.futurejobs.ai
    description: https://prod.api.futurejobs.ai
components:
  schemas:
    ApiV1WlSourcingSessionGetResponsesContentApplicationJsonSchemaDataSessionJdDetail:
      type: object
      properties:
        userText:
          type: string
        sampleProfileURL:
          type: string
      required:
        - userText
        - sampleProfileURL
      title: >-
        ApiV1WlSourcingSessionGetResponsesContentApplicationJsonSchemaDataSessionJdDetail
    ApiV1WlSourcingSessionGetResponsesContentApplicationJsonSchemaDataSessionQueriesCountryRegion:
      type: object
      properties:
        type:
          type: string
        value:
          type: array
          items:
            type: string
      required:
        - type
        - value
      title: >-
        ApiV1WlSourcingSessionGetResponsesContentApplicationJsonSchemaDataSessionQueriesCountryRegion
    ApiV1WlSourcingSessionGetResponsesContentApplicationJsonSchemaDataSessionQueriesCurrentEmployersTitle:
      type: object
      properties:
        type:
          type: string
        value:
          type: array
          items:
            type: string
      required:
        - type
        - value
      title: >-
        ApiV1WlSourcingSessionGetResponsesContentApplicationJsonSchemaDataSessionQueriesCurrentEmployersTitle
    ApiV1WlSourcingSessionGetResponsesContentApplicationJsonSchemaDataSessionQueriesYearsOfExperienceRaw:
      type: object
      properties:
        type:
          type: string
        value:
          type: array
          items:
            type: integer
      required:
        - type
        - value
      title: >-
        ApiV1WlSourcingSessionGetResponsesContentApplicationJsonSchemaDataSessionQueriesYearsOfExperienceRaw
    ApiV1WlSourcingSessionGetResponsesContentApplicationJsonSchemaDataSessionQueriesRegion:
      type: object
      properties:
        type:
          type: string
        value:
          type: array
          items:
            type: string
      required:
        - type
        - value
      title: >-
        ApiV1WlSourcingSessionGetResponsesContentApplicationJsonSchemaDataSessionQueriesRegion
    ApiV1WlSourcingSessionGetResponsesContentApplicationJsonSchemaDataSessionQueriesSkillsValue:
      type: object
      properties:
        mandatory:
          type: array
          items:
            type: string
        core:
          type: array
          items:
            type: string
        secondary:
          type: array
          items:
            description: Any type
      required:
        - mandatory
        - core
        - secondary
      title: >-
        ApiV1WlSourcingSessionGetResponsesContentApplicationJsonSchemaDataSessionQueriesSkillsValue
    ApiV1WlSourcingSessionGetResponsesContentApplicationJsonSchemaDataSessionQueriesSkills:
      type: object
      properties:
        type:
          type: string
        value:
          $ref: >-
            #/components/schemas/ApiV1WlSourcingSessionGetResponsesContentApplicationJsonSchemaDataSessionQueriesSkillsValue
      required:
        - type
        - value
      title: >-
        ApiV1WlSourcingSessionGetResponsesContentApplicationJsonSchemaDataSessionQueriesSkills
    ApiV1WlSourcingSessionGetResponsesContentApplicationJsonSchemaDataSessionQueries:
      type: object
      properties:
        country_region:
          $ref: >-
            #/components/schemas/ApiV1WlSourcingSessionGetResponsesContentApplicationJsonSchemaDataSessionQueriesCountryRegion
        current_employers.title:
          $ref: >-
            #/components/schemas/ApiV1WlSourcingSessionGetResponsesContentApplicationJsonSchemaDataSessionQueriesCurrentEmployersTitle
        years_of_experience_raw:
          $ref: >-
            #/components/schemas/ApiV1WlSourcingSessionGetResponsesContentApplicationJsonSchemaDataSessionQueriesYearsOfExperienceRaw
        region:
          $ref: >-
            #/components/schemas/ApiV1WlSourcingSessionGetResponsesContentApplicationJsonSchemaDataSessionQueriesRegion
        skills:
          $ref: >-
            #/components/schemas/ApiV1WlSourcingSessionGetResponsesContentApplicationJsonSchemaDataSessionQueriesSkills
      required:
        - country_region
        - current_employers.title
        - years_of_experience_raw
        - region
        - skills
      title: >-
        ApiV1WlSourcingSessionGetResponsesContentApplicationJsonSchemaDataSessionQueries
    ApiV1WlSourcingSessionGetResponsesContentApplicationJsonSchemaDataSessionCreatedByAvatar:
      type: object
      properties:
        id:
          type: string
      required:
        - id
      title: >-
        ApiV1WlSourcingSessionGetResponsesContentApplicationJsonSchemaDataSessionCreatedByAvatar
    ApiV1WlSourcingSessionGetResponsesContentApplicationJsonSchemaDataSessionCreatedBy:
      type: object
      properties:
        _id:
          type: string
        name:
          type: string
        email:
          type: string
          format: email
        avatar:
          $ref: >-
            #/components/schemas/ApiV1WlSourcingSessionGetResponsesContentApplicationJsonSchemaDataSessionCreatedByAvatar
        role:
          type: string
        status:
          type: string
        lastActiveAt:
          type: string
          format: date-time
      required:
        - _id
        - name
        - email
        - avatar
        - role
        - status
        - lastActiveAt
      title: >-
        ApiV1WlSourcingSessionGetResponsesContentApplicationJsonSchemaDataSessionCreatedBy
    ApiV1WlSourcingSessionGetResponsesContentApplicationJsonSchemaDataSessionMetadata:
      type: object
      properties:
        s3Key:
          description: Any type
        fileHash:
          description: Any type
        uploadedAt:
          description: Any type
      title: >-
        ApiV1WlSourcingSessionGetResponsesContentApplicationJsonSchemaDataSessionMetadata
    ApiV1WlSourcingSessionGetResponsesContentApplicationJsonSchemaDataSessionBatchesItems:
      type: object
      properties:
        batchKey:
          type: string
        count:
          type: integer
        _id:
          type: string
      required:
        - batchKey
        - count
        - _id
      title: >-
        ApiV1WlSourcingSessionGetResponsesContentApplicationJsonSchemaDataSessionBatchesItems
    ApiV1WlSourcingSessionGetResponsesContentApplicationJsonSchemaDataSession:
      type: object
      properties:
        _id:
          type: string
        sessionTitle:
          type: string
        medium:
          type: string
        jdDetail:
          $ref: >-
            #/components/schemas/ApiV1WlSourcingSessionGetResponsesContentApplicationJsonSchemaDataSessionJdDetail
        queries:
          $ref: >-
            #/components/schemas/ApiV1WlSourcingSessionGetResponsesContentApplicationJsonSchemaDataSessionQueries
        nuances:
          type: array
          items:
            description: Any type
        mustHaves:
          type: string
        createdBy:
          $ref: >-
            #/components/schemas/ApiV1WlSourcingSessionGetResponsesContentApplicationJsonSchemaDataSessionCreatedBy
        workspaceId:
          type: string
        projectId:
          type: string
        next_cursor:
          type: string
        searchMoreCounter:
          type: integer
        filterChangesCounter:
          type: integer
        lastCandidatesFetchedAt:
          type: string
          format: date-time
        profileMatchingStatus:
          type: string
        totalProfilesForMatching:
          type: integer
        totalProfilesMatched:
          type: integer
        profileMatchingProvider:
          type: string
        sessionCreditCharged:
          type: boolean
        forceRefreshAnalysis:
          type: boolean
        isFallback:
          type: boolean
        totalAvailableProfiles:
          type: integer
        metadata:
          $ref: >-
            #/components/schemas/ApiV1WlSourcingSessionGetResponsesContentApplicationJsonSchemaDataSessionMetadata
        batches:
          type: array
          items:
            $ref: >-
              #/components/schemas/ApiV1WlSourcingSessionGetResponsesContentApplicationJsonSchemaDataSessionBatchesItems
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        __v:
          type: integer
        projectName:
          type: string
      required:
        - _id
        - sessionTitle
        - medium
        - jdDetail
        - queries
        - nuances
        - mustHaves
        - createdBy
        - workspaceId
        - projectId
        - next_cursor
        - searchMoreCounter
        - filterChangesCounter
        - lastCandidatesFetchedAt
        - profileMatchingStatus
        - totalProfilesForMatching
        - totalProfilesMatched
        - profileMatchingProvider
        - sessionCreditCharged
        - forceRefreshAnalysis
        - isFallback
        - totalAvailableProfiles
        - metadata
        - batches
        - createdAt
        - updatedAt
        - __v
        - projectName
      title: >-
        ApiV1WlSourcingSessionGetResponsesContentApplicationJsonSchemaDataSession
    ApiV1WlSourcingSessionGetResponsesContentApplicationJsonSchemaData:
      type: object
      properties:
        session:
          $ref: >-
            #/components/schemas/ApiV1WlSourcingSessionGetResponsesContentApplicationJsonSchemaDataSession
      required:
        - session
      title: ApiV1WlSourcingSessionGetResponsesContentApplicationJsonSchemaData
    Sourcing Session_Get Session Details_Response_200:
      type: object
      properties:
        statusCode:
          type: integer
        data:
          $ref: >-
            #/components/schemas/ApiV1WlSourcingSessionGetResponsesContentApplicationJsonSchemaData
        message:
          type: string
        status:
          type: string
      required:
        - statusCode
        - data
        - message
        - status
      title: Sourcing Session_Get Session Details_Response_200
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-fj-api-key

```

## Examples



**Response**

```json
{
  "statusCode": 200,
  "data": {
    "session": {
      "_id": "69f45196c8bbf1ce65b5bcd6",
      "sessionTitle": ".NET Developer",
      "medium": "MANUAL",
      "jdDetail": {
        "userText": "Job Title: .NET Developer, Experience: 1-5 years, Location: Pune",
        "sampleProfileURL": ""
      },
      "queries": {
        "country_region": {
          "type": "(.)",
          "value": [
            "India"
          ]
        },
        "current_employers.title": {
          "type": "IN",
          "value": [
            ".NET Developer"
          ]
        },
        "years_of_experience_raw": {
          "type": "RANGE",
          "value": [
            1,
            5
          ]
        },
        "region": {
          "type": "IN",
          "value": [
            "Pune, Maharashtra, India"
          ]
        },
        "skills": {
          "type": "IN",
          "value": {
            "mandatory": [
              "C#"
            ],
            "core": [
              "ASP.NET MVC"
            ],
            "secondary": []
          }
        }
      },
      "nuances": [],
      "mustHaves": "",
      "createdBy": {
        "_id": "68b6a343b878a5da9a172b65",
        "name": "Sachin Dhayatadak",
        "email": "sachin@futurejobs.ai",
        "avatar": {
          "id": "user/68b6a343b878a5da9a172b65/avatar_1777107886005.jpg"
        },
        "role": "owner",
        "status": "active",
        "lastActiveAt": "2026-04-30T06:09:34.240Z"
      },
      "workspaceId": "69f0dd1da08d760844569ba4",
      "projectId": "69f0dd1da08d760844569bb1",
      "next_cursor": "H4sIAJhR9GkC_xXMQQrCMBBG4auUrF1M8ncyiVcRKZM2QxdisE0XIt7dun0fvI97HXV7T6vuq7sOzmSJIiiQ6k3HEqhaCnnJ4AjRZGKQWXIooykiU-HCPnjiyCBidxnc3rZ-vm4MnxD4fqbeuj6muR3PvwD4_gBgPJhCeQAAAA==",
      "searchMoreCounter": 0,
      "filterChangesCounter": 0,
      "lastCandidatesFetchedAt": "2026-05-01T07:09:17.307Z",
      "profileMatchingStatus": "done",
      "totalProfilesForMatching": 25,
      "totalProfilesMatched": 25,
      "profileMatchingProvider": "gemini",
      "sessionCreditCharged": true,
      "forceRefreshAnalysis": false,
      "isFallback": false,
      "totalAvailableProfiles": 333,
      "metadata": {},
      "batches": [
        {
          "batchKey": "CREATED_BATCH",
          "count": 25,
          "_id": "69f4519dc8bbf1ce65b5bcdb"
        }
      ],
      "createdAt": "2026-05-01T07:09:10.110Z",
      "updatedAt": "2026-05-01T07:09:42.608Z",
      "__v": 0,
      "projectName": "First Project"
    }
  },
  "message": "Session fetched successfully",
  "status": "SUCCESS"
}
```

**SDK Code**

```python Sourcing Session_Get Session Details_example
import requests

url = "https://prod.api.futurejobs.ai/api/v1/wl/sourcing-session/"

headers = {"x-fj-api-key": "<apiKey>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript Sourcing Session_Get Session Details_example
const url = 'https://prod.api.futurejobs.ai/api/v1/wl/sourcing-session/';
const options = {method: 'GET', headers: {'x-fj-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Sourcing Session_Get Session Details_example
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://prod.api.futurejobs.ai/api/v1/wl/sourcing-session/"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-fj-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Sourcing Session_Get Session Details_example
require 'uri'
require 'net/http'

url = URI("https://prod.api.futurejobs.ai/api/v1/wl/sourcing-session/")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-fj-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java Sourcing Session_Get Session Details_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://prod.api.futurejobs.ai/api/v1/wl/sourcing-session/")
  .header("x-fj-api-key", "<apiKey>")
  .asString();
```

```php Sourcing Session_Get Session Details_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://prod.api.futurejobs.ai/api/v1/wl/sourcing-session/', [
  'headers' => [
    'x-fj-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Sourcing Session_Get Session Details_example
using RestSharp;

var client = new RestClient("https://prod.api.futurejobs.ai/api/v1/wl/sourcing-session/");
var request = new RestRequest(Method.GET);
request.AddHeader("x-fj-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Sourcing Session_Get Session Details_example
import Foundation

let headers = ["x-fj-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://prod.api.futurejobs.ai/api/v1/wl/sourcing-session/")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```