For clean Markdown of any page, append .md to the page URL. For a complete documentation index, see https://docs.ivfprovider.com/ivf-agency-ap-is/sperm-donor/llms.txt. For full documentation content, see https://docs.ivfprovider.com/ivf-agency-ap-is/sperm-donor/llms-full.txt.

# View

GET http://localhost:8000/api/sperm-donors/{id}

Reference: https://docs.ivfprovider.com/ivf-agency-ap-is/sperm-donor/view

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /api/sperm-donors/{id}:
    get:
      operationId: view
      summary: View
      tags:
        - subpackage_spermDonor
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: Authorization
          in: header
          description: Bearer authentication
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Sperm Donor_View_Response_200'
servers:
  - url: http://localhost:8000
components:
  schemas:
    ApiSpermDonorsIdGetResponsesContentApplicationJsonSchemaUserStatus:
      type: object
      properties:
        id:
          type: integer
        name:
          type: string
        class:
          type: string
        type:
          type: string
        translated_name:
          type: string
      required:
        - id
        - name
        - class
        - type
        - translated_name
      title: ApiSpermDonorsIdGetResponsesContentApplicationJsonSchemaUserStatus
    ApiSpermDonorsIdGetResponsesContentApplicationJsonSchemaUser:
      type: object
      properties:
        id:
          type: integer
        agency_id:
          type: integer
        full_name:
          type: string
        first_name:
          type: string
        last_name:
          type: string
        middle_name:
          description: Any type
        email:
          type: string
          format: email
        unique_id:
          type: string
        stripe_customer_id:
          description: Any type
        is_premium:
          type: boolean
        ip_whitelist_enabled:
          type: boolean
        profile_percentage:
          type: integer
        reason:
          description: Any type
        profile_picture:
          description: Any type
        status_id:
          type: integer
        status:
          $ref: >-
            #/components/schemas/ApiSpermDonorsIdGetResponsesContentApplicationJsonSchemaUserStatus
      required:
        - id
        - agency_id
        - full_name
        - first_name
        - last_name
        - email
        - unique_id
        - is_premium
        - ip_whitelist_enabled
        - profile_percentage
        - status_id
        - status
      title: ApiSpermDonorsIdGetResponsesContentApplicationJsonSchemaUser
    ApiSpermDonorsIdGetResponsesContentApplicationJsonSchemaUserProfileRace:
      type: object
      properties:
        id:
          type: integer
        name:
          type: string
        race_value:
          type: string
      required:
        - id
        - name
        - race_value
      title: ApiSpermDonorsIdGetResponsesContentApplicationJsonSchemaUserProfileRace
    ApiSpermDonorsIdGetResponsesContentApplicationJsonSchemaUserProfileHeight:
      type: object
      properties:
        id:
          type: integer
        name:
          type: string
      required:
        - id
        - name
      title: >-
        ApiSpermDonorsIdGetResponsesContentApplicationJsonSchemaUserProfileHeight
    ApiSpermDonorsIdGetResponsesContentApplicationJsonSchemaUserProfileWeight:
      type: object
      properties:
        id:
          type: integer
        name:
          type: string
      required:
        - id
        - name
      title: >-
        ApiSpermDonorsIdGetResponsesContentApplicationJsonSchemaUserProfileWeight
    ApiSpermDonorsIdGetResponsesContentApplicationJsonSchemaUserProfileBloodType:
      type: object
      properties:
        id:
          type: integer
        name:
          type: string
      required:
        - id
        - name
      title: >-
        ApiSpermDonorsIdGetResponsesContentApplicationJsonSchemaUserProfileBloodType
    ApiSpermDonorsIdGetResponsesContentApplicationJsonSchemaUserProfileEthnicity:
      type: object
      properties:
        id:
          type: integer
        name:
          type: string
      required:
        - id
        - name
      title: >-
        ApiSpermDonorsIdGetResponsesContentApplicationJsonSchemaUserProfileEthnicity
    ApiSpermDonorsIdGetResponsesContentApplicationJsonSchemaUserProfileEducationLevel:
      type: object
      properties:
        id:
          type: integer
        name:
          type: string
      required:
        - id
        - name
      title: >-
        ApiSpermDonorsIdGetResponsesContentApplicationJsonSchemaUserProfileEducationLevel
    ApiSpermDonorsIdGetResponsesContentApplicationJsonSchemaUserProfileReligion:
      type: object
      properties:
        id:
          type: integer
        name:
          type: string
      required:
        - id
        - name
      title: >-
        ApiSpermDonorsIdGetResponsesContentApplicationJsonSchemaUserProfileReligion
    ApiSpermDonorsIdGetResponsesContentApplicationJsonSchemaUserProfileMaritalStatus:
      type: object
      properties:
        id:
          type: integer
        name:
          type: string
      required:
        - id
        - name
      title: >-
        ApiSpermDonorsIdGetResponsesContentApplicationJsonSchemaUserProfileMaritalStatus
    ApiSpermDonorsIdGetResponsesContentApplicationJsonSchemaUserProfile:
      type: object
      properties:
        user_id:
          type: integer
        mobile_phone:
          type: string
        mobile_phone_country:
          type: string
        home_phone:
          type: string
        home_phone_country:
          type: string
        description:
          type: string
        date_of_birth:
          type: string
          format: date
        birth_country_id:
          type: integer
        race_id:
          type: integer
        race:
          $ref: >-
            #/components/schemas/ApiSpermDonorsIdGetResponsesContentApplicationJsonSchemaUserProfileRace
        height_id:
          type: integer
        height:
          $ref: >-
            #/components/schemas/ApiSpermDonorsIdGetResponsesContentApplicationJsonSchemaUserProfileHeight
        weight_id:
          type: integer
        weight:
          $ref: >-
            #/components/schemas/ApiSpermDonorsIdGetResponsesContentApplicationJsonSchemaUserProfileWeight
        bmi:
          type: string
        blood_type_id:
          type: integer
        blood_type:
          $ref: >-
            #/components/schemas/ApiSpermDonorsIdGetResponsesContentApplicationJsonSchemaUserProfileBloodType
        ethnicity_id:
          type: integer
        ethnicity:
          $ref: >-
            #/components/schemas/ApiSpermDonorsIdGetResponsesContentApplicationJsonSchemaUserProfileEthnicity
        education_level_id:
          type: integer
        education_level:
          $ref: >-
            #/components/schemas/ApiSpermDonorsIdGetResponsesContentApplicationJsonSchemaUserProfileEducationLevel
        religion_id:
          type: integer
        religion:
          $ref: >-
            #/components/schemas/ApiSpermDonorsIdGetResponsesContentApplicationJsonSchemaUserProfileReligion
        marital_status_id:
          type: integer
        marital_status:
          $ref: >-
            #/components/schemas/ApiSpermDonorsIdGetResponsesContentApplicationJsonSchemaUserProfileMaritalStatus
        occupation:
          type: string
        language_id:
          type: integer
        other_languages:
          type: string
        english_fluency:
          description: Any type
        us_citizen:
          description: Any type
        eye_color_id:
          type: integer
        eye_size_id:
          type: integer
        hair_color_id:
          type: integer
        hair_type_id:
          type: integer
        hair_texture_id:
          type: integer
        skin_tone_id:
          type: integer
        nose_size_id:
          type: integer
        skin_condition_id:
          type: integer
        skin_complexion_id:
          type: integer
        residence:
          type: string
        network_agency:
          type: string
        nationality:
          type: string
        zodiac_sign_id:
          type: integer
        genetic_screening:
          type: string
        freckles_id:
          type: integer
        compensation:
          type: string
      required:
        - user_id
        - mobile_phone
        - mobile_phone_country
        - home_phone
        - home_phone_country
        - description
        - date_of_birth
        - birth_country_id
        - race_id
        - race
        - height_id
        - height
        - weight_id
        - weight
        - bmi
        - blood_type_id
        - blood_type
        - ethnicity_id
        - ethnicity
        - education_level_id
        - education_level
        - religion_id
        - religion
        - marital_status_id
        - marital_status
        - occupation
        - language_id
        - other_languages
        - eye_color_id
        - eye_size_id
        - hair_color_id
        - hair_type_id
        - hair_texture_id
        - skin_tone_id
        - nose_size_id
        - skin_condition_id
        - skin_complexion_id
        - residence
        - network_agency
        - nationality
        - zodiac_sign_id
        - genetic_screening
        - freckles_id
        - compensation
      title: ApiSpermDonorsIdGetResponsesContentApplicationJsonSchemaUserProfile
    ApiSpermDonorsIdGetResponsesContentApplicationJsonSchemaAgency:
      type: object
      properties:
        id:
          type: integer
        name:
          type: string
        email:
          type: string
          format: email
        mobile_phone:
          type: string
        mobile_phone_country:
          type: string
      required:
        - id
        - name
        - email
        - mobile_phone
        - mobile_phone_country
      title: ApiSpermDonorsIdGetResponsesContentApplicationJsonSchemaAgency
    ApiSpermDonorsIdGetResponsesContentApplicationJsonSchemaAddress:
      type: object
      properties:
        street_address:
          type: string
        residence:
          type: string
        country_id:
          type: integer
        state_id:
          type: integer
        city:
          type: string
        zip_code:
          type: string
      required:
        - street_address
        - residence
        - country_id
        - state_id
        - city
        - zip_code
      title: ApiSpermDonorsIdGetResponsesContentApplicationJsonSchemaAddress
    ApiSpermDonorsIdGetResponsesContentApplicationJsonSchemaEmergencyContact:
      type: object
      properties:
        id:
          type: integer
        first_name:
          type: string
        last_name:
          type: string
        middle_name:
          type: string
        relationship:
          type: string
        home_phone:
          type: string
        home_phone_country:
          type: string
        mobile_phone:
          type: string
        mobile_phone_country:
          type: string
        email:
          type: string
          format: email
        living_country_id:
          type: integer
        street_address:
          type: string
        country_id:
          type: integer
        state_id:
          type: integer
        city:
          type: string
        zip_code:
          type: string
        note:
          type: string
      required:
        - id
        - first_name
        - last_name
        - middle_name
        - relationship
        - home_phone
        - home_phone_country
        - mobile_phone
        - mobile_phone_country
        - email
        - living_country_id
        - street_address
        - country_id
        - state_id
        - city
        - zip_code
        - note
      title: ApiSpermDonorsIdGetResponsesContentApplicationJsonSchemaEmergencyContact
    Sperm Donor_View_Response_200:
      type: object
      properties:
        user:
          $ref: >-
            #/components/schemas/ApiSpermDonorsIdGetResponsesContentApplicationJsonSchemaUser
        user_profile:
          $ref: >-
            #/components/schemas/ApiSpermDonorsIdGetResponsesContentApplicationJsonSchemaUserProfile
        agency:
          $ref: >-
            #/components/schemas/ApiSpermDonorsIdGetResponsesContentApplicationJsonSchemaAgency
        address:
          $ref: >-
            #/components/schemas/ApiSpermDonorsIdGetResponsesContentApplicationJsonSchemaAddress
        emergency_contact:
          $ref: >-
            #/components/schemas/ApiSpermDonorsIdGetResponsesContentApplicationJsonSchemaEmergencyContact
      required:
        - user
        - user_profile
        - agency
        - address
        - emergency_contact
      title: Sperm Donor_View_Response_200
  securitySchemes:
    oauth2Auth:
      type: http
      scheme: bearer

```

## SDK Code Examples

```python Sperm Donor_View_example
import requests

url = "http://localhost:8000/api/sperm-donors/21"

headers = {"Authorization": "Bearer <token>"}

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

print(response.json())
```

```javascript Sperm Donor_View_example
const url = 'http://localhost:8000/api/sperm-donors/21';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

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

```go Sperm Donor_View_example
package main

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

func main() {

	url := "http://localhost:8000/api/sperm-donors/21"

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

	req.Header.Add("Authorization", "Bearer <token>")

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

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

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

}
```

```ruby Sperm Donor_View_example
require 'uri'
require 'net/http'

url = URI("http://localhost:8000/api/sperm-donors/21")

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

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

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

```java Sperm Donor_View_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("http://localhost:8000/api/sperm-donors/21")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php Sperm Donor_View_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'http://localhost:8000/api/sperm-donors/21', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

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

```csharp Sperm Donor_View_example
using RestSharp;

var client = new RestClient("http://localhost:8000/api/sperm-donors/21");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift Sperm Donor_View_example
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "http://localhost:8000/api/sperm-donors/21")! 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()
```