# Get Survey From API

In order to get the survey you may use following API endpoint.

![](https://1025048312-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8fLhS0bmfBRyq0HdUm%2F-MaRsPhV8ySCq2-9BycU%2F-MaRstKkw91SrlI3uR_f%2Fimage.png?alt=media\&token=9750683d-f964-4527-851c-c711b4d87b9b)

This will return the single DTO that contains all the objects related to a survey survey. Using the objects of this DTO you will be able to achieve all needed operations on your survey.

```typescript
export class NgSurveyModel {
  survey: Survey;
  pages: Page[];
  questions: Question[];
  answers: Answer[];
  answerTypes: NGSAnswerType[];
  answersConnections: AnswerConnection[];
  answersExtendedProperties: AnswerExtendedProperty[];
  answersAppointments: AnswerAppointment[];
  answersWidgetProperties: AnswerWidgetProperty[];
  regularExpressions: RegularExpression[];
  multiLanguageTexts: MultiLanguageText[];
  branchingConditions: NGSBranchingCondition[];
  skipPageConditions: NGSSkipPageCondition[];
  skipQuestionConditions: NGSSkipQuestionCondition[];
  redirectionConditions: NGSRedirectionCondition[];
  skipAnswerConditions: NGSSkipAnswerCondition[];
  thanksMessageConditions: NGSThanksMessageCondition[];
  surveyActions: NGSSurveyAction[];
  formStyles: FormStyle[];
  dynamicContents: NGSDynamicContent[];
  systemMessages: Map<string, Map<string, string>>;
  securityItems: NGSSecurity[];
  lastModified: number;
  supportedLanguages: Language[];
  resources?: Resource[];
  mediaItems?: Media[];
  respondentSession?: NGSRespondent;
}
```
